---
title: cancel()
framework: matter
role: symbol
role_heading: Instance Method
path: matter/mtrattributevaluewaiter/cancel()
---

# cancel()

Cancel the wait for the set of attribute path/value pairs represented by this MTRAttributeValueWaiter.  If the completion has not been called yet, it will becalled with MTRErrorCodeCancelled.

## Declaration

```swift
func cancel()
```
