Hi,

I am trying to delay task execution, but failed to do so without blocking 
the execution context. Akka scheduler is no good for me, since I need to 
have access to the result of the task at some point. Implementing delay in 
task execution (sleeping) causes blocking, which is also unacceptable.

I have also tried Patterns.after pattern, but this only delays completion 
of the Future, not the execution of given task itself.

I ended up with blocking solution though:

future(new Callable<TaskResult>() {
  public TaskResult call() throws Exception {
    sleep(delay);
    TaskResult rslt = exec();
    return rslt;
  }
}, CTX);

but am very unhappy with it...

I am struggling with this issue for couple of hours now, hope someone can 
give me a hint or two.


-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to