AsyncMonitor<T>.PollForOperationCompletionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
override this.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.