Scala – ScheduledFuture

Akka has akka.pattern:

def after[T](duration: FiniteDuration, using: Scheduler)(value: ⇒ Future[T])(implicit ec: ExecutionContext): Future[T]

“Returns a scala.concurrent.Future that will be completed with the success or failure of the provided value after the specified duration.”

http://doc.akka.io/api/akka/2.2.1/#akka.pattern.package

Leave a Comment