---
title: cancel()
framework: musicunderstanding
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: musicunderstanding/musicunderstandingsession/cancel()
---

# cancel()

Cancels any ongoing analysis.

## Declaration

```swift
func cancel() async
```

## Discussion

Discussion After you cancel a session, it can’t be re-used.
