Skip to content

DurableTaskReference<TResult>.WaitAsync(CancellationToken)

WaitAsync(CancellationToken)

View source
public ConfiguredScheduledTaskAwaitable<TResult> WaitAsync(CancellationToken cancellationToken = default(CancellationToken))
Waits for the task's successful result.

Parameters

cancellationTokenCancellationToken
A token which abandons the wait. It doesn't cancel the task.

Returns

An awaitable which returns the result, or throws the task's failure or cancellation.