Type Property 型プロパティ

isCancelled

A Boolean value that indicates whether the task should stop executing.

Declaration 宣言

static var isCancelled: Bool { get }
Available when Success is Never and Failure is Never. SuccessNeverであるそしてFailureNeverである時に利用可能です。

Discussion 解説

After the value of this property becomes true, it remains true indefinitely. There is no way to uncancel a task.

See Also 参照

Canceling Tasks タスクの取り消し

Related Documentation 関連文書

checkCancellation()