cancellationToken
CancellationToken is a value type used in many programming environments to propagate a cancellation request for an operation. It enables cooperative cancellation of synchronous and asynchronous work by providing a shared signal that code can observe. A token by itself does not perform cancellation; it represents the possibility of canceling and must be used in conjunction with a cancellation source.
CancellationTokenSource is the component that issues cancellation. Calling Cancel on the source signals all tokens associated
Usage typically involves passing a cancellation token to methods that support it. Inside the method, code should
Registration allows code to register a callback to run when cancellation is requested. The registration is
Semantics and best practices: cancellation is cooperative and asynchronous; it does not forcibly terminate threads. Tokens