isCancelled

abstract val isCancelled: Boolean (source)

Returns true if this job was cancelled. In the general case, it does not imply that the job has already completed (it may still be cancelling whatever it was doing).