TaskRun<TOutput>.RequestCancellationAsync 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.
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.