Instance Property

isCancelled

A Boolean value that indicates whether the receiver is cancelled.

Declaration

var isCancelled: Bool { get }

Discussion

true if the receiver has been cancelled, otherwise false.

If your thread supports cancellation, it should check this property periodically and exit if it ever returns true.

See Also

Determining the Thread’s Execution State

var isExecuting: Bool

A Boolean value that indicates whether the receiver is executing.

var isFinished: Bool

A Boolean value that indicates whether the receiver has finished execution.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software