[akka-user] Delaying futures?

2015-01-29 Thread John Ulric
Is there a way to delay the execution (not the completion) of a future, similar to the scheduleOnce method for actors? I tried this: FutureString delayedString = Patterns.after(new FiniteDuration(10, TimeUnit.SECONDS), system.scheduler(), system.dispatcher(), Futures.future(new

Re: [akka-user] Delaying futures?

2015-01-29 Thread Viktor Klang
Hi John, try this signature instead: http://doc.akka.io/japi/akka/2.3.9/akka/pattern/Patterns.html#after(scala.concurrent.duration.FiniteDuration, akka.actor.Scheduler, scala.concurrent.ExecutionContext, java.util.concurrent.Callable) On Thu, Jan 29, 2015 at 10:34 PM, John Ulric uja...@gmail.com