你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AzureOperationPoller Class
Initiates long running operation and polls status in separate thread.
- Inheritance
-
builtins.objectAzureOperationPoller
Constructor
AzureOperationPoller(send_cmd, output_cmd, update_cmd, timeout=30)
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. |
| done |
Check status of the long running operation. |
| remove_done_callback |
Remove a callback from the long running operation. |
| result |
Return the result of the long running operation, or the result available after the specified timeout. |
| status |
Returns the current status string. |
| wait |
Wait on the long running operation for a specified length of time. |
add_done_callback
Add callback function to be run once the long running operation has completed - regardless of the status of the operation.
add_done_callback(func)
Parameters
- func
- callable
Callback function that takes at least one argument, a completed LongRunningOperation.
Exceptions
done
Check status of the long running operation.
done()
Returns
'True' if the process has completed, else 'False'.
Exceptions
remove_done_callback
Remove a callback from the long running operation.
remove_done_callback(func)
Parameters
Exceptions
result
Return the result of the long running operation, or the result available after the specified timeout.
result(timeout=None)
Parameters
- timeout
Returns
The deserialized resource of the long running operation, if one is available.
Exceptions
Server problem with the query.
status
Returns the current status string.
status()
Returns
The current status string
Return type
Exceptions
wait
Wait on the long running operation for a specified length of time.
wait(timeout=None)
Parameters
Exceptions
Server problem with the query.
反馈
提交和查看相关反馈