Task::FromCanceled Method

.NET Framework (current version)
 

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticFromCanceled(CancellationToken)

Creates a Task that's completed due to cancellation with a specified cancellation token.

System_CAPS_pubmethodSystem_CAPS_staticFromCanceled<TResult>(CancellationToken)

Creates a Task<TResult> that's completed due to cancellation with a specified cancellation token.

Return to top
Show: