Cancellation Cooperative Functions/suspension point

Functions that check for coroutine cancellation at suspension points and throw CancellationException when co-routine is cancelled.

Examples:

Behavior: Stop execution immediately when parent scope is cancelled, enabling structured concurrency and proper cleanup.

Relationships

For Searchability

For Searchability
  • Cancellation Aware Functions
  • Respect CancellationException
  • Suspending functions that respect cancellation
  • Cooperative cancellation
  • Cancellation propagation
  • Cancellation point
  • suspension point that checks for cancellation

Gotchas


Children
  1. Yield
  2. ensureActive()

Backlinks