https://kotlinlang.org logo
m

mcastiblanco

02/19/2018, 3:02 AM
that's correct, the current state is valid but it's not optimal for an external observer of the Job. While
Deferred
has
isCompletedExceptionally
, the only way to know that for a Job is to check for completion and then do
getCancellationException.message == "..."
to see if it's clean completion or exceptional completion