There is no MaterializedMap any more, but you can still retrieve the materialized things, e.g. the Future of the out sink in your example.
See http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-M4/scala/stream-flows-and-basics.html /Patrik On Tue, Mar 17, 2015 at 8:43 PM, Olger Warnier <[email protected]> wrote: > Hi List, > > with akka stream M2 you could do a onComplete on an element in the stream. > So when the whole thing was finished, it was possible to handle the result > and exit (for instance) > > In M4 this seems to have changed. What is the advised way to do something > similar with the M4 release ? > > code example below > > val materialized = FlowGraph { implicit builder =>...... > src ~> convert ~> collect ~> count ~> out > } > > materialized.get(out).onComplete { > case Success(result) => > println("OK") > System.exit(0) > case Failure(ex) => > println(s"Error ${ex.getMessage()}") > System.exit(1) > } > > > Kind regards, > > Olger > > -- > >>>>>>>>>> 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. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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.
