Hi Endre,

Thanks for your example, but it doesn't compile. 3 changes fixed it but 
error messages were misleading and getting an ambiguous reference error 
with 22 alternatives is daunting.
The reference doc gives examples for Broadcast but it's not obvious that 
UnzipWith should work the same way and the Scaladocs for UnzipWith obscure 
how to use it. If I hadn't looked at the Scaladocs I probably would have 
guessed if worked like Broadcast but after looking at them I was completely 
confused. GraphUnzipWithSpec has some tests and that's the best information 
I found.

Gary

On Friday, January 22, 2016 at 2:25:44 AM UTC-8, Akka Team wrote:
>
> 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] 
> <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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.

Reply via email to