Skip to main content

collect_all_async()

Return an asyncio.Future that resolves when every task finishes.

Usage

Source

collect_all_async(tasks)

The async form of collect_all().

Parameters

tasks: _Iterable[Task]
The Task handles to wait on.

Returns

An asyncio.Future resolving with all values in input order. The
first failure by position rejects with the exception collect_all() raises, including its index attribute. Only that handle is consumed, and the rest stay collectible. Cancelling the Future detaches every task without cancelling it.