API Reference
Class
CancellationExtensions
Provides helper methods for working with tasks and cancellation tokens.
Inheritance
- Object
- CancellationExtensions
Methods
WaitWithCancellation(System.Threading.Tasks.Task task, System.Threading.CancellationToken token) #Waits for the task to complete while observing a cancellation token.
Parameters
- task System.Threading.Tasks.Task
- token System.Threading.CancellationToken
WaitWithCancellation``1(System.Threading.Tasks.Task{``0} task, System.Threading.CancellationToken token) #Waits for the task to complete while observing a cancellation token and returns its result.
Parameters
- task System.Threading.Tasks.Task{``0}
- token System.Threading.CancellationToken