How to use cancellation tokens in ASP.NET Core 7
Take advantage of cancellation tokens in ASP.NET Core to allow long running operations to be cancelled gracefully and keep applications responsive.
Cancellationtoken Throwifcancellationrequested Cancellationtoken Iscancellationrequested Visual Studio Token Iscancellationrequested Token Throwifcancellationrequested Token Register
Source: infoworld.com