---
title: isCancelled
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/thread/iscancelled
---

# isCancelled

A Boolean value that indicates whether the receiver is cancelled.

## Declaration

```swift
var isCancelled: Bool { get }
```

## Discussion

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

- [cancel()](foundation/thread/cancel().md)

### Determining the Thread’s Execution State

- [isExecuting](foundation/thread/isexecuting.md)
- [isFinished](foundation/thread/isfinished.md)
