ThreadResults 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

wait()
Waits until all its requests have completed.
Returns

None

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

Request response objects

Return type

ClientResponse

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

Request response objects

Return type

ClientResponse