TYPE
CancellationToken
Communicates a cancellation request to operations that observe it.
Formal Syntax & Structure
csharp syntaxcsharp
CancellationToken tokenWorking Example
Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.token.ThrowIfCancellationRequested();