---
title: cancelReading()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avassetreader/cancelreading()
---

# cancelReading()

Cancels any background work and stops the reader’s outputs from reading more samples.

## Declaration

```swift
func cancelReading()
```

## Discussion

Discussion To stop reading samples before reaching the end of the time range, call this method to stop any in-progress background read operations.

## See Also

### Controlling reading

- [start()](avfoundation/avassetreader/start().md)
- [startReading()](avfoundation/avassetreader/startreading().md)
