If there are no relationship (no ordering) between the future result and other 
incoming messages you can just use pipe, without stash.

/Patrik

> 14 maj 2015 kl. 19:24 skrev Viktor Klang <[email protected]>:
> 
> Stash and pipeTo is probably the best you can do today.
> The reason for things to be as they are is because it amounts to what's 
> called a "selective receive" and it is typically a cause of poor performance 
> during runtime (since it stalls the actor).
> 
> If you have a more typical "pipeline processing" requirement you should 
> definitely look into Akka Streams, with its "mapAsync" operation—with a more 
> constrained target domain as stream processing is, it is possible to create 
> more targeted solutions.
> Does that help?
> 
>> On Thu, May 14, 2015 at 7:06 PM, Andrew Gaydenko <[email protected]> 
>> wrote:
>>> On Thursday, May 14, 2015 at 8:04:50 PM UTC+3, √ wrote:
>>> What if it never completes?
>> 
>> Timeout is acceptable.
>> -- 
>> >>>>>>>>>> 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.
> 
> 
> 
> -- 
> Cheers,
> √
> -- 
> >>>>>>>>>> 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