Język

TaskRun<TOutput>.RequestCancellationAsync Method

Definition

Requests cooperative cancellation of this input, including after a queued input is promoted. A completed or retired input is cancellation-inert; this never cancels a successor input.

public virtual System.Threading.Tasks.Task RequestCancellationAsync();
abstract member RequestCancellationAsync : unit -> System.Threading.Tasks.Task
override this.RequestCancellationAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function RequestCancellationAsync () As Task

Returns

A task that completes when cancellation has been requested.

Applies to