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.