Constructor

Methods

Class: cogen.core.events.Join

A operation for waiting on a coroutine. Example:

@coroutine
def coro_a():
    return_value = yield events.Join(ref)


@coroutine
def coro_b():
    yield "bla"
    raise StopIteration("some return value")

ref = scheduler.add(coro_b)
scheduler.add(coro_a)

This will pause the coroutine and resume it when the other coroutine (ref in the example) has died.

Constructor

__init__ (self, coro, **kws)

Methods

__init__ (self, coro, **kws)