https://kotlinlang.org logo
n

natario1

09/30/2022, 4:54 PM
Given a job
job
that was cancelled, cancellation could have been generated either from within
job
(e.g. with
job.cancel
, or one of its descendants) or by some parent job up the hierarchy. Is there any way to disambiguate between these two cases? I saw that
JobCancellationException
has a nice
job
field, but it’s not public.