---
title: cancel()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/progress/cancel()
---

# cancel()

Cancels progress tracking.

## Declaration

```swift
func cancel()
```

## Discussion

Discussion This method invokes the block for cancellationHandler, if there is one, and ensures that any subsequent reads of the isCancelled property return true. If the receiver has suboperations, the system cancels their progress as well.

## See Also

### Controlling Progress

- [pause()](foundation/progress/pause().md)
- [resume()](foundation/progress/resume().md)
- [resumingHandler](foundation/progress/resuminghandler.md)
