Challenge: Cancellation of a Job
Solve a challenge regarding the cancellation of a coroutine.
Problem
When a job is canceled, it changes its state to “Cancelling.” Then, at the first suspension point, a CancellationException
is thrown. Write a code that will catch this exception using try and catch and use the job
...