Module 7 · Lesson 211 min
The required CancellationToken
A CancellationToken is how a caller says "stop, the client hung up" or "the deadline passed." ASP.NET hands one to your endpoint per request; you thread it down through every async IO call so a cancelled request stops doing work instead of finishing pointlessly. TS has AbortSignal; this is the same idea, taken seriously.
Try it yourself
Recall
The CancellationToken rule
State the rule the way a reviewer holds it.
You're adding a new async repository method that queries the database. What must its signature include, and what must you NOT do to the token parameter?