TaskContext<TInput>.ExitForRecoveryAsync(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.
Exits the current turn for later recovery: releases the lease without a terminal status
and signals the engine to park the task in_progress so it can be
resumed elsewhere. This does not throw β after calling it the handler should return
(any returned value is ignored). Only valid while Shutdown is signaled;
calling it otherwise throws InvalidOperationException.
public virtual System.Threading.Tasks.Task ExitForRecoveryAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member ExitForRecoveryAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ExitForRecoveryAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ExitForRecoveryAsync (Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- cancellationToken
- CancellationToken
A cancellation token.
Returns
A task that completes once the deferral has been signaled.