Skip to content

Glossary: Kotlin Beyond the Basics

cooperative

Cancellation is cooperative: a coroutine only stops where it checks, such as at `delay`, `isActive` or `ensureActive()`. A loop that never suspends never notices.

Where the book teaches it

Related terms

cancellationensureActive