Hi ALL,

I found this in the akka documentation


   1. import akka.dispatch.*;
   2. import scala.concurrent.ExecutionContext;
   3. import scala.concurrent.Future;
   4. import scala.concurrent.Await;
   5. import scala.concurrent.Promise;
   6. import akka.util.Timeout;


   1. Timeout timeout = new Timeout(Duration.create(5, "seconds"));
   2. Future<Object> future = Patterns.ask(actor, msg, timeout);
   3. String result = (String) Await.result(future, timeout.duration());

This will cause the current thread to block and wait for the UntypedActor to 
'complete' the Future with it's reply. 

Here you have mentioned completing the Future with its reply. How an actor 
compute Future with its reply. please elaborate

Thanks and Regards

Krishna Kadam

-- 
>>>>>>>>>>      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