Skip to content

Glossary: Kotlin Beyond the Basics

cancellation

Also written: cancel, cancelAndJoin

Stopping a coroutine before it finishes. `job.cancel()` asks it to stop and `cancelAndJoin()` asks and waits.

Where the book teaches it

Related terms

cooperativeCancellationExceptionJob