Glossary of Terms

async neutral

Types that support either of a regular or asynchronous implementation. For example, an async neutral iterable may provide either regular for _ in iterable or asynchronous async for _ in iterable iteration. Commonly, callables have async neutral parameters to simplify using them with a mixture of synchronous and regular arguments.

borrowing
borrowed object

Many async objects need to be cleaned up explicitly – for example, an asynchronous iterator should generally be aclosed after use (see PEP 533 for details). When borrowing such an object to a temporary owner, the original owner guarantees to clean up the object but prevents the temporary owner from doing so.