FromCanceled()
System::Threading::Tasks::FromCanceled(const CancellationToken&) function
Creates a task that has completed due to cancellation with the specified token.
TaskPtr System::Threading::Tasks::FromCanceled(const CancellationToken &cancellationToken)
Arguments
| Parameter | Type | Description |
|---|---|---|
| cancellationToken | const CancellationToken& | The cancellation token that caused the task to be cancelled. |
Return Value
A cancelled task.
See Also
- Typedef TaskPtr
- Class CancellationToken
- Namespace System::Threading::Tasks
- Library Aspose.Slides