Hi Gary,
A simple example:
RunnableGraph.fromGraph(GraphDSL.create() { implicit b ⇒
val unzip = b.add(UnzipWith[Int, Int, Int]((b: Int) ⇒ (b, b, b))
Source(1 to 10) ~> unzip.in
unzip.out0 ~> Sink.ignore
unzip.out1 ~> Sink.ignore
unzip.out2 ~> Sink.ignore
ClosedShape
}).run()
Can you please explain what was the source of the confusion so we can
improve our docs?
-Endre
On Fri, Jan 22, 2016 at 4:51 AM, Gary Struthers <[email protected]>
wrote:
> I want to create a FanOutShape with generic types that takes a function
> (A) => (B, B). I'm getting lost with the UnzipWith, UnzipWith2,
> UnzipWithCreator2, and UnzipWithApply. I can't find explanations of how to
> use this. Can someone explain how this is supposed to be used?
>
> Thanks,
> Gary
>
> --
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
--
Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam
--
>>>>>>>>>> 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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.