Classes

Functions

Module: coroutine

Classes

Coroutine

We need a coroutine wrapper for generators and function alike because we want to run functions that don't return generators just like a coroutine

Functions

coroutine (func)

A decorator function for generators. Example:

@coroutine
def plain_ol_generator():
    yield bla
    yield bla
    ...