---
title: cancel()
framework: vision
role: symbol
role_heading: Instance Method
path: vision/vnrequest/cancel()
---

# cancel()

Cancels the request before it can finish executing.

## Declaration

```swift
func cancel()
```
