CancellationToken

A .NET value passed into async methods that lets the caller signal that the work is no longer wanted and should stop.

In more detail

By convention it is the last parameter. ASP.NET Core supplies one per request, cancelled when the client disconnects, and passing it down to EF Core stops a query nobody is waiting for.

Related terms

Taught in

References