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.
Glossary: Kotlin Beyond the Basics
Also written: cancel, cancelAndJoin
Stopping a coroutine before it finishes. `job.cancel()` asks it to stop and `cancelAndJoin()` asks and waits.