Have you looked at the pipeTo pattern and the Stash trait? I'm not sure why
a combination of pipeTo and become() with Stash wouldn't work.

On Thu, May 14, 2015 at 4:33 AM, Andrew Gaydenko <[email protected]>
wrote:

> It's funny just now I have met the same situation! :)
>
> More strictly, my case is even simpler as far as an actor hasn't got
> state. I also use RoundRobinPool(1) to force serialization. I have tried
> just to use Await.result(), and it seems to work . To call function
> returning Future  I use context.dispatcher as execution context.
>
> OTOH, there is a common recommendation to avoid awaiting. So, what is the
> best practice here?
>
> --
> >>>>>>>>>> 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.
>

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