isDone

abstract fun isDone(): Boolean

Returns true if the task completed (either successfully, with an exception, or was cancelled).