isCompleted

abstract fun isCompleted(): Boolean

Return

true if the task completed (has a result, an error, or was cancelled. false otherwise.