Hi Tal, The issue why you can't convert in the GraphDSL an arbitrary number of materialized values is because that would need HLists (lists if heterogeneous types, a generalization of tuples). What is exactly what you want to achieve?
-Endre On Thu, Feb 25, 2016 at 3:50 PM, Tal Pressman <[email protected]> wrote: > Hi, > > I find myself needing a way to send messages to several sinks, while > aggregating their materialized values. Trying to use the GraphDSL, I can > either: > > - Pass a static number of graphs to GraphDSL.create and use their > materialized values, or > - Call builder.add for each graph, but lose their materialized value, > or > > I could also implement some custom sink that calls the appropriate > GraphDSL.create method based on the number of sinks I need connected at > runtime, but that seems ridiculous... > Ideally, I would like to have something like: > def create[S <: Shape, M, Mat](graphs:Seq[Graph[Shape, _ <: M]])(matF: Seq > [M] => Mat)(buildBlock: Builder[Mat] => Seq[Shape] => S): Graph[S, Seq[Mat > ]] > > Is there any way of achieving this? > > Thanks, > Tal > > > > -- > >>>>>>>>>> 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.
