Piping does not guarantee that order will be preserved. There are several ways to do this without waiting.
For example, you can maintain a sequence number and send current sequence number to your long-running service to be returned when job completes. Then you can have logic to assure that, when long-running task returns, you apply the changes in the right order . On Thu, May 14, 2015 at 4:06 AM, Andrew Gaydenko <[email protected]> wrote: > On Thursday, May 14, 2015 at 1:41:30 PM UTC+3, rrodseth wrote: >> >> 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. >> > > What is that relation between stashing and piping with resolving a future? > Can you, please, explain in code? > > -- > >>>>>>>>>> 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.
