Share via


IAsyncMonitor<T>.PollForOperationCompletionAsync Method

Definition

Poll to check for completion of an async call to the Graph service.

public System.Threading.Tasks.Task<T> PollForOperationCompletionAsync (IProgress<Microsoft.Graph.AsyncOperationStatus> progress, System.Threading.CancellationToken cancellationToken);
abstract member PollForOperationCompletionAsync : IProgress<Microsoft.Graph.AsyncOperationStatus> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Public Function PollForOperationCompletionAsync (progress As IProgress(Of AsyncOperationStatus), cancellationToken As CancellationToken) As Task(Of T)

Parameters

progress
IProgress<AsyncOperationStatus>

The progress status.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<T>

The operation task.

Applies to