Poller for long running operations.
ConstructorLROPoller(client: Any, initial_response: Any, deserialization_callback: Callable[[Any], PollingReturnType_co], polling_method: PollingMethod[PollingReturnType_co])
Parameters Methods add_done_callback
Add callback function to be run once the long running operation has completed - regardless of the status of the operation.
continuation_tokenReturn a continuation token that allows to restart the poller later.
doneCheck status of the long running operation.
from_continuation_tokenCreate a poller from a continuation token.
polling_methodReturn the polling method associated to this poller.
remove_done_callbackRemove a callback from the long running operation.
resultReturn the result of the long running operation, or the result available after the specified timeout.
statusReturns the current status string.
waitWait on the long running operation for a specified length of time. You can check if this call as ended with timeout with the "done()" method.
add_done_callbackAdd callback function to be run once the long running operation has completed - regardless of the status of the operation.
add_done_callback(func: Callable) -> None
Parameters continuation_token
Return a continuation token that allows to restart the poller later.
continuation_token() -> str
Returns done
Check status of the long running operation.
done() -> bool
Returns from_continuation_token
Create a poller from a continuation token.
from_continuation_token(polling_method: PollingMethod[PollingReturnType_co], continuation_token: str, **kwargs: Any) -> LROPoller[PollingReturnType_co]
Parameters Returns Exceptions polling_method
Return the polling method associated to this poller.
polling_method() -> PollingMethod[PollingReturnType_co]
Returns remove_done_callback
Remove a callback from the long running operation.
remove_done_callback(func: Callable) -> None
Parameters Exceptions result
Return the result of the long running operation, or the result available after the specified timeout.
result(timeout: float | None = None) -> PollingReturnType_co
Parameters Returns Exceptions status
Returns the current status string.
status() -> str
Returns wait
Wait on the long running operation for a specified length of time. You can check if this call as ended with timeout with the "done()" method.
wait(timeout: float | None = None) -> None
Parameters Exceptions
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4