System::Threading::Tasks::FromCanceled method

System::Threading::Tasks::FromCanceled method

Creates a task that has completed due to cancellation with the specified token.

TaskPtr System::Threading::Tasks::FromCanceled(const CancellationToken &cancellationToken)
ParameterTypeDescription
cancellationTokenconst CancellationToken&The cancellation token that caused the task to be cancelled.

ReturnValue

A cancelled task.

See Also