isCancelled

open override fun isCancelled(): Boolean

Returns true if the task was cancelled before completion.