Removes the display link from all run loop modes.
- iOS 3.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Core Animation
Removing the display link from all run loop modes causes it to be released by the run loop. The display link also releases the target.
invalidate() is thread safe meaning that it can be called from a thread separate to the one in which the display link is running.