Search⌘ K
AI Features

Challenge: Cancellation of a Job

Explore how to implement cancellation of a job in Kotlin coroutines by using try-catch blocks to catch CancellationException. Understand how to use coroutine builders and job functions to cancel coroutines properly while controlling output in terminal applications.

We'll cover the following...

Problem

When a job is canceled, it changes its state to ...