Share via


AbstractiveSummarizeOperation.WaitForCompletionAsync Method

Definition

Overloads

WaitForCompletionAsync(CancellationToken)

Monitors the status of the long-running operation until it completes.

WaitForCompletionAsync(TimeSpan, CancellationToken)

Monitors the status of the long-running operation until it completes.

WaitForCompletionAsync(CancellationToken)

Source:
AbstractiveSummarizeOperation.cs

Monitors the status of the long-running operation until it completes.

public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.AbstractiveSummarizeResultCollection>>> WaitForCompletionAsync (System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.AbstractiveSummarizeResultCollection>>>
Public Overrides Function WaitForCompletionAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of AsyncPageable(Of AbstractiveSummarizeResultCollection)))

Parameters

cancellationToken
CancellationToken

The CancellationToken controlling the lifetime of the request.

Returns

The HTTP response received from the server.

Remarks

This method will periodically call UpdateStatusAsync(CancellationToken) until HasCompleted is true. It will then return the final result of the operation.

Applies to

WaitForCompletionAsync(TimeSpan, CancellationToken)

Source:
AbstractiveSummarizeOperation.cs

Monitors the status of the long-running operation until it completes.

public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.AbstractiveSummarizeResultCollection>>> WaitForCompletionAsync (TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.AbstractiveSummarizeResultCollection>>>
Public Overrides Function WaitForCompletionAsync (pollingInterval As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of AsyncPageable(Of AbstractiveSummarizeResultCollection)))

Parameters

pollingInterval
TimeSpan

The interval between status requests sent to the server. Note that this behavior can be overriden by the server if it explicitly communicates to the client that it should wait a specific amount of time before polling again.

cancellationToken
CancellationToken

The CancellationToken controlling the lifetime of the request.

Returns

The HTTP response received from the server.

Applies to