Constructor

Methods

Class: cogen.core.events.WaitForSignal

The coroutine will resume when the same object is Signaled.

Eg:

value = yield events.WaitForSignal(
    name,
    timeout=None,
    weak_timeout=True,
    prio=priority.DEFAULT
)
  • name - a object to wait on, can use strings for this - string used to wait is equal to the string used to signal.
  • value - a object sent with the signal. See: Signal

See: TimedOperation.

Constructor

__init__ (self, name, **kws)

Methods

__init__ (self, name, **kws)