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.