I\'m trying to write a construct which allows me to run computations in a given time window. Something like:
def expensiveComputation(): Double = //... some
To the best of my knowledge, either you yield (the computation calls to some scheduler) or you use a thread, which gets manipulated from the "outside".