Language

TaskContext<TInput>.ExitForRecoveryAsync(CancellationToken) Method

Definition

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.

Applies to