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.

Reply via email to