Topic
CancellationToken usage, request cancellation, timeout boundaries, and cooperative cancellation.
Practice items tagged with Cancellation.
Design background jobs that handle cancellation, retries, and duplicate execution without corrupting external state.
Use CancellationToken to stop wasted work when clients disconnect, timeouts expire, or background operations are being shut down.
Explain why CancellationTokenSource lifetime matters and how careless timeout creation can leak timers or resources.
Review async .NET code that does not accept or propagate CancellationToken and explain the practical production risk.
Explain how a .NET BackgroundService should handle cancellation, in-flight work, and application shutdown.
Defines what happens when several operations fail, cancellation arrives, or only part of a parallel batch completes, without orphaning work or hiding errors.