Skip to content

Glossary: Python Beyond the Basics

coroutine

Also written: coroutines

A function defined with `async def` that can pause while it waits, letting other code run. Calling one doesn't run it until it is awaited or passed to `gather`.

Where the book teaches it

Related terms

async / awaitasyncio