Return the Coroutine counts.
Interrupt this waiting zombie coroutine.
Return whether this coroutine is a zombie.
Thread's 'run' method delegates to the 'act' method.
Thread's 'run' method delegates to the 'act' method. Upon interruption the 'act' method is run again from the beginning.
Start this coroutine, i.e., invoke its 'run' -> 'act' method.
Yield control from 'this' to 'that' coroutine.
Yield control from 'this' to 'that' coroutine.
the other coroutine to yield control to
whether 'this' coroutine is to terminate (true) or wait to be resumed (false)
Zombify this coroutine.
The
Coroutine
class supports (one-at-a-time) quasi-concurrent programming. A coroutine runs/acts until it yields control from 'this' to 'that' coroutine. When resumed, a coroutines continues its execution where it left off. When a coroutine finishes, it may be terminated or zombified, in which case it may be restarted.