Instance PropertyConcurrency


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

  • Available when Success conforms to Sendable and Failure conforms to Error

  • iOS 13.0+
  • macOS 10.15+
  • tvOS 13.0+
  • watchOS 6.0+
var isCancelled: Bool { get }


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

  • SeeAlso: checkCancellation()