@asyncio.coroutine
Decorator to mark generator-based coroutines. This enables the generator use yield from
to call async
def
coroutines, and also enables the generator to be called by async def
coroutines, for instance using an await
expression.
There is no need to decorate async def
coroutines themselves.
If the generator is not yielded from before it is destroyed, an error message is logged. See Detect coroutines never scheduled.
Please login to continue.