Methods

Class: cogen.core.events.Call

This will pause the current coroutine, add a new coro in the scheduler and resume the callee when it returns.

Usage:
result = yield events.Call(mycoro, args=<a tuple>, kwargs=<a dict>, prio=<int>)
  • if prio is set the new coroutine will be added in the top of the
scheduler queue

Methods

__init__ (self, coro, args=None, kwargs=None, **kws)