3 ms·
You can call old style coroutines (generators wrapped in asyncio.coroutine) from async/await code directly. @coroutine def foo(): return 123 async
by 1st1 10y ago
You can call old style coroutines (generators wrapped in asyncio.coroutine) from async/await code directly.
@coroutine
def foo(): return 123
async def bar():
await foo()