Not knowing what your actor is trying to do, what about Flow.mapAsync + ask?
-- Cheers, √ On 26 May 2015 14:54, "Sam Halliday" <[email protected]> wrote: > Hi all, > > I need to interface an Actor with an API that requires a Flow. > > The actor can receive a sealed trait family of inputs and will only send > (a different) sealed family of outputs to upstream, so I suspect that will > help matters. > > Looking in FlowOps, it looks like I can create a Flow from a partial > function, but there isn't anything that would just simply take an ActorRef. > > Am I missing something trivial to just upgrade an ActoRef to a Flow? > (Obviously there is a bunch of extra messages the actor will have to > handle, such as backpressure messages etc... but assume that's all taken > care of) > > Best regards, > Sam > > -- > >>>>>>>>>> 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.
