ThreadResults Reference
Contents
Public Methods
- pending()
Function which checks the completion statuses of all its requests by calling the
pending()method on eachClientResponse. ReturnsTrueif 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
forloop.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
forloop.Waits for and starts yielding results immediately as they become available.- Returns
Request response objects
- Return type
ClientResponse