Class CancellationTokenExtension
- Namespace
- WindowSill.API
- Assembly
- WindowSill.API.dll
Provides a set of helper method to play around with cancellation tokens.
public static class CancellationTokenExtension
- Inheritance
-
CancellationTokenExtension
- Inherited Members
Methods
AsTask(CancellationToken)
Converts the CancellationToken to a Task that cancels when the CancellationToken is being canceled.
public static Task AsTask(this CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken