How Does Cancellation Work?
Learn how cancellation works.
We'll cover the following
When a job is canceled, it changes its state to “Canceling.” Then, at the first suspension point, a CancellationException
is thrown. We can catch this exception using a try-catch
, but it’s recommended to rethrow it.
Get hands-on with 1400+ tech skills courses.