ExtractiveSummarizeOperation.WaitForCompletionAsync 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.
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)
Monitors the status of the long-running operation until it completes.
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.ExtractiveSummarizeResultCollection>>> WaitForCompletionAsync (System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.ExtractiveSummarizeResultCollection>>>
Public Overrides Function WaitForCompletionAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of AsyncPageable(Of ExtractiveSummarizeResultCollection)))
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)
Monitors the status of the long-running operation until it completes.
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.ExtractiveSummarizeResultCollection>>> 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.ExtractiveSummarizeResultCollection>>>
Public Overrides Function WaitForCompletionAsync (pollingInterval As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of AsyncPageable(Of ExtractiveSummarizeResultCollection)))
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
Azure SDK for .NET