It's documented here: http://doc.akka.io/docs/akka/2.4/scala/stream/stream-customize.html#Custom_materialized_values <http://doc.akka.io/docs/akka/2.4.16/scala/stream/stream-customize.html#Custom_materialized_values>
Happy Haking! -- Konrad Malawski On 8 February 2017 at 22:07:02, [email protected] ([email protected]) wrote: > Hi, > > This might be a silly question but I could not find an answer in the docs. > I have a custom Sink (GraphStageLogic[SinkShape[T]]) which publishes to > an event bus and runs for a predetermined duration. This works however > there is no materialized value other than NotUsed since SinkShape only > supports an Inlet. I want to get a Future[T] back so I can monitor the > stream and react to success/failure. Is the best way to accomplish this to > make my Sink into a Flow of FlowShape[T,T] then apply a Sink.ignore/fold to > materialize a value? > > Thanks, > Andrew > > -- > >>>>>>>>>> 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. > -- >>>>>>>>>> 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.
