isCompleted

abstract fun isCompleted(): Boolean

检查此任务是否已经完成(无论成功、失败或取消)。

Return

如果任务已完成,则返回 true