Contents

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

Related Documentation

Determining the Thread’s Execution State