---
title: cancel()
framework: translation
role: symbol
role_heading: Instance Method
path: translation/translationsession/cancel()
---

# cancel()

Attempts to stop all ongoing work for the translation session.

## Declaration

```swift
func cancel()
```

## Discussion

Discussion Future requests will throw an error that the session is already cancelled.
