---
title: invalidate()
framework: ContactProvider
role: symbol
role_heading: Instance Method
platforms: [iOS 18.0+, iPadOS 18.0+]
path: contactprovider/contactitemenumerator/invalidate()
---

# invalidate()

Invalidates the enumerator.

## Declaration

```swift
func invalidate() async
```

## Discussion

Discussion The system calls this method before terminating the extension. The extension may terminate before this method returns.
