Skip to content

Glossary: C# Beyond the Basics

CancellationToken

Also written: CancellationTokenSource, cancellation token

A signal passed to async code that says "stop now". A `CancellationTokenSource` makes the token and can cancel it after a set time, which gives a timeout.

Where the book teaches it

Related terms

TaskasyncTaskCanceledException