Scheduler

trait Scheduler

The design of the Scheduler is taken from: https://github.com/functional-streams-for-scala/fs2/blob/series/1.0/core/jvm/src/main/scala/fs2/Scheduler.scala

class Object
trait Matchable
class Any

Value members

Abstract methods

def schedule(action: => Unit, duration: FiniteDuration): () => Unit

schedule an action which should time out after a given duration

schedule an action which should time out after a given duration

Returns

a function cancelling the action even before the timeout

def shutdown(): Unit