Class: cogen.core.events.AddCoro
A operation for adding a coroutine in the scheduler.
Example:
yield events.AddCoro(some_coro, args=(), kwargs={})
This is similar to Call, but it doesn't pause the current coroutine. See: Operation.
Constructor
__init__ (self, coro, args=None, kwargs=None, **kws)
Methods
finalize (self)
Return a reference to the instance of the newly added coroutine.
process (self, sched, coro)
Add the given coroutine in the scheduler.
Attributes
args
Value of args
<member 'args' of 'AddCoro' objects>
coro
Value of coro
<member 'coro' of 'AddCoro' objects>
kwargs
Value of kwargs
<member 'kwargs' of 'AddCoro' objects>
prio
Value of prio
<member 'prio' of 'Operation' objects>
result
Value of result
<member 'result' of 'AddCoro' objects>
state
Value of state
<member 'state' of 'Operation' objects>