DeallocateNodeOperation.WaitForCompletionAsync(CancellationToken) 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.
Periodically calls the server till the long-running operation completes.
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.Compute.Batch.BatchNode>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response<Azure.Compute.Batch.BatchNode>>
Public Overrides Function WaitForCompletionAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of BatchNode))
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 GetNode till the state its state is not Deallocating or the node is not found. If not found the HasValue method will return false and the value will be null.