AnalyzeActionsOperation.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) |
Periodically calls the server till the long-running operation completes. |
WaitForCompletionAsync(TimeSpan, CancellationToken) |
Periodically calls the server till the long-running operation completes. |
WaitForCompletionAsync(CancellationToken)
- Source:
- AnalyzeActionsOperation.cs
Periodically calls the server till the long-running operation completes.
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.AnalyzeActionsResult>>> WaitForCompletionAsync (System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.AnalyzeActionsResult>>>
Public Overrides Function WaitForCompletionAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of AsyncPageable(Of AnalyzeActionsResult)))
Parameters
- cancellationToken
- CancellationToken
A CancellationToken used for the periodical service calls.
Returns
The last HTTP response received from the server.
Remarks
This method will periodically call UpdateStatusAsync till HasCompleted is true, then return the final result of the operation.
Applies to
WaitForCompletionAsync(TimeSpan, CancellationToken)
- Source:
- AnalyzeActionsOperation.cs
Periodically calls the server till the long-running operation completes.
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AsyncPageable<Azure.AI.TextAnalytics.AnalyzeActionsResult>>> 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.AnalyzeActionsResult>>>
Public Overrides Function WaitForCompletionAsync (pollingInterval As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of AsyncPageable(Of AnalyzeActionsResult)))
Parameters
- pollingInterval
- TimeSpan
The interval between status requests to the server. The interval can change based on information returned from the server. For example, the server might communicate to the client that there is not reason to poll for status change sooner than some time.
- cancellationToken
- CancellationToken
A CancellationToken used for the periodical service calls.
Returns
The last HTTP response received from the server.
Remarks
This method will periodically call UpdateStatusAsync till HasCompleted is true, then return the final result of the operation.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기