AsyncLROPoller Class

Async poller for long running operations.

Inheritance
AsyncLROPoller
AsyncLROPoller

Constructor

AsyncLROPoller(client: typing.Any, initial_response: typing.Any, deserialization_callback: typing.Callable, polling_method: azure.core.polling._async_poller.AsyncPollingMethod[PollingReturnType])

Parameters

client
PipelineClient
Required

A pipeline service client

initial_response
PipelineResponse
Required

The initial call response

deserialization_callback
callable or Model
Required

A callback that takes a Response and return a deserialized object. If a subclass of Model is given, this passes "deserialize" as callback.

polling_method
AsyncPollingMethod
Required

The polling strategy to adopt

Methods

continuation_token

Return a continuation token that allows to restart the poller later.

done

Check status of the long running operation.

from_continuation_token
polling_method

Return the polling method associated to this poller.

result

Return the result of the long running operation.

status

Returns the current status string.

wait

Wait on the long running operation.

continuation_token

Return a continuation token that allows to restart the poller later.

continuation_token() -> str

Returns

An opaque continuation token

Return type

str

done

Check status of the long running operation.

done() -> bool

Returns

'True' if the process has completed, else 'False'.

Return type

from_continuation_token

from_continuation_token(polling_method: azure.core.polling._async_poller.AsyncPollingMethod[PollingReturnType], continuation_token: str, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[PollingReturnType]

Parameters

cls
Required
polling_method
Required
continuation_token
Required

polling_method

Return the polling method associated to this poller.

polling_method() -> azure.core.polling._async_poller.AsyncPollingMethod[PollingReturnType]

result

Return the result of the long running operation.

result() -> PollingReturnType

Returns

The deserialized resource of the long running operation, if one is available.

Exceptions

~azure.core.exceptions.HttpResponseError

Server problem with the query.

status

Returns the current status string.

status() -> str

Returns

The current status string

Return type

str

wait

Wait on the long running operation.

wait() -> None

Exceptions

~azure.core.exceptions.HttpResponseError

Server problem with the query.