Hello,
I need a way to toggle a flow on/off (i.e. pause a flow). I created this
simple thing in the DLS:
val throttle = Flow[Int].map(i => {while(!toggle) Thread.sleep(100); i})
This works as I need it when I use it in a FlowGraph, but I hate the sleep.
Before I go off the tracks with some Promise-based thing, is there a
better way to accomplish what I'm trying to do?
Greg
--
>>>>>>>>>> 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.