Scheduler

trait Scheduler
class Object
trait Matchable
class Any

Type members

Types

type Cancel = () => Unit

Value members

Abstract methods

def delay(duration: FiniteDuration): Future[Unit]

return a Future which will only complete after the given duration

return a Future which will only complete after the given duration

Source:
Scheduler.scala
def schedule(action: => Unit, duration: FiniteDuration): Cancel

schedule an action which will start after the given duration The return "Cancel" action can allow the action to be cancelled before the duration expires

schedule an action which will start after the given duration The return "Cancel" action can allow the action to be cancelled before the duration expires

Source:
Scheduler.scala