---
title: cancelAnalysis()
framework: soundanalysis
role: symbol
role_heading: Instance Method
path: soundanalysis/snaudiofileanalyzer/cancelanalysis()
---

# cancelAnalysis()

Cancels all the asynchronous sound analysis requests the analyzer is currently processing.

## Declaration

```swift
func cancelAnalysis()
```

## Discussion

Discussion The method executes asynchronously, and when it completes, the analyzer calls the completion handler you provide to the analyze(completionHandler:) method.

## See Also

### Analyzing Data

- [analyze()](soundanalysis/snaudiofileanalyzer/analyze().md)
- [analyze(completionHandler:)](soundanalysis/snaudiofileanalyzer/analyze(completionhandler:).md)
