I'm designing a graph with a cycle, and to allow termination, I want one of 
the graph stages to be able to detect the completion of another (far 
removed) graph stage, so it can itself complete.

My first idea was to use an AtomicBoolean, but then I thought it would be 
nice to avoid manual synchronization, and to do it within Akka streams 
itself. The only idea I could come up with is to add another outlet to the 
stage being observed, and to connect it to observer stage, never sending 
anything along it, and just using it to check whether the outlet is closed.

Is there a better way? Should I just stick with AtomicBoolean?

Thanks,
Matthew w.

-- 
>>>>>>>>>>      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