---
title: isCancelled
framework: dispatch
role: symbol
role_heading: Instance Property
path: dispatch/dispatchsourceprotocol/iscancelled
---

# isCancelled

Returns a Boolean indicating whether the given dispatch source has been canceled.

## Declaration

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

## See Also

### Canceling a Dispatch Source

- [cancel()](dispatch/dispatchsourceprotocol/cancel().md)
- [setCancelHandler(handler:)](dispatch/dispatchsourceprotocol/setcancelhandler(handler:).md)
- [setCancelHandler(qos:flags:handler:)](dispatch/dispatchsourceprotocol/setcancelhandler(qos:flags:handler:).md)
