What is a coroutine?
Asynchronous programming and asyncio
Audio flashcard · 0:14Nortren·
What is a coroutine?
0:14
A coroutine is a function defined with async def that can be paused and resumed at await expressions. Calling a coroutine function does not run it; it returns a coroutine object that must be scheduled on an event loop. Coroutines are the building blocks of asyncio programs.
docs.python.org