System::Threading::Tasks::FromCanceled metod

System::Threading::Tasks::FromCanceled method

Skapar en task som har slutförts på grund av avbokning med den specificerade token.

TaskPtr System::Threading::Tasks::FromCanceled(const CancellationToken &cancellationToken)
ParameterTypBeskrivning
cancellationTokenconst CancellationToken&Avbokningstoken som orsakade att tasken avbröts.

ReturnValue

En avbruten task.

Se även