AsyncResults Reference



Public Methods

pending()

Function which checks the completion statuses of all its requests by calling the pending() method on each ClientResponse. Returns True if at least one request is still in progress.

Returns

Request completion status

Return type

bool



Public Coroutines

async wait()
Awaits until all its requests have completed.
Returns

None

async gather()
Asynchronous generator which can be used in the async for loop.
Awaits and starts yielding results when all requests have completed.
Returns

Request response objects

Return type

ClientResponse

async as_completed()
Asynchronous generator which can be used in the async for loop.
Awaits and starts yielding results immediately as they become available.
Returns

Request response objects

Return type

ClientResponse