scalation.process
The Coroutine class supports quasi-concurrent programming. A coroutine runs/acts until it yields control to some other coroutine. When resumed, a coroutines continues execution where it left off.
Coroutine
Start this coroutine, i.
Start this coroutine, i.e., invoke its 'act' method.
Yield control to the 'other' coroutine.
the other coroutine to yield control to
whether to wait via a receive or quit via exit
The
Coroutine
class supports quasi-concurrent programming. A coroutine runs/acts until it yields control to some other coroutine. When resumed, a coroutines continues execution where it left off.