Constructor

Methods

Class: cogen.core.events.Signal

This will resume the coroutines that where paused with WaitForSignal.

Usage:

nr = yield events.Signal(
    name,
    value,
    prio=priority.DEFAULT
)
  • nr - the number of coroutines woken up
  • name - object that coroutines wait on, can be a string
  • value - object that the waiting coros recieve when they are resumed.

See: Operation.

Constructor

__init__ (self, name, value=None, recipients=0, **kws)

All the coroutines waiting for this object will be added back in the active coroutine queue.

Methods

__init__ (self, name, value=None, recipients=0, **kws)

All the coroutines waiting for this object will be added back in the active coroutine queue.