On Thu, May 28, 2015 at 12:36 PM, Jakub Liska <[email protected]> wrote:
> I see, > > I didn't know that partial graph that exposes in&out ports can be used > like a common Flow : > It can only be used this way if it has the right shape (FlowShape). If you want to stub out a more complex graph (multiple ins and/or outs) then you need to explicitly construct a replacement graph of the right shape (since there is no default way to wire things together). In your code you returned Flow on one branch, so it is completely fine to return an identity Flow on the other branch. This can only work of course if the Flow does not change the type of course. -Endre > > in ~> partialGraph ~> out > > There is only this in documentation : > > partialGraph.runWith(Source(List(1)), Sink.head) > > So I thought it was not possible... Thank you Endre !!! > > -- > >>>>>>>>>> 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.
