Skip to content

Glossary: Android with Jetpack Compose

CancellationException

The exception a Kotlin coroutine uses to be told to stop. It signals a normal cancellation rather than a real error, so code that catches exceptions should re-throw it instead of treating it as a failure or showing an error message.

Where the book teaches it

Related terms

coroutineviewModelScope