2 ms·
"@coroutine" not only makes something a coroutine which is not already a generator, but it also document its use as coroutine. If you are using asyncio (or som
by bayesianhorse 11y ago
"@coroutine" not only makes something a coroutine which is not already a generator, but it also document its use as coroutine.
If you are using asyncio (or something similar), you will always need to pay attention to the "concurrent choreography" (for lack of a better word). I find I rarely confuse coroutines with other routines, and it's mostly when calling asyncio based third party libraries.