---
title: cancelAndFinishNow()
framework: speech
role: symbol
role_heading: Instance Method
path: speech/speechanalyzer/cancelandfinishnow()
---

# cancelAndFinishNow()

Finishes analysis immediately.

## Declaration

```swift
final func cancelAndFinishNow() async
```

## Discussion

Discussion This method cancels all pending work and then finishes analysis. It works similarly to calling cancelAnalysis(before:) and then finish(after:), but unlike finish(after:), this method is able to finish analysis prior to any input. The post-conditions for this method are identical to finish(after:). You do not need to call this method before releasing this analyzer or its modules.

## See Also

### Finishing analysis

- [finalizeAndFinishThroughEndOfInput()](speech/speechanalyzer/finalizeandfinishthroughendofinput().md)
- [finalizeAndFinish(through:)](speech/speechanalyzer/finalizeandfinish(through:).md)
- [finish(after:)](speech/speechanalyzer/finish(after:).md)
