---
title: invalidate()
framework: quartzcore
role: symbol
role_heading: Instance Method
path: quartzcore/cadisplaylink/invalidate()
---

# invalidate()

Removes the display link from all run loop modes.

## Declaration

```swift
func invalidate()
```

## Discussion

Discussion When you remove the display link from all run loop mode, the system releases it. The display link also releases the target. This method is thread safe, so you can call it from a thread separate to the one in which the display link runs.

## See Also

### Scheduling a Display Link to Send Notifications

- [add(to:forMode:)](quartzcore/cadisplaylink/add(to:formode:).md)
- [remove(from:forMode:)](quartzcore/cadisplaylink/remove(from:formode:).md)
