Search notes:
Python: Awaitable objects
An
awaitable object
can be used in
await
expressions.
There are three main types of awaitable objects:
a coroutine object (a function defined with
async def
or an
object returned by a coroutine function
)
a
asyncio.Future
a
Task
object
Objects witha an
__await__()
method are also awaitable objects.
See also
asyncio.gather
(*aws, ‥)
runs the awaitable objects of
aws
concurrently.
PEP 492
Python objects
Index