Contents

invalidate()

Removes the display link from all run loop modes.

Declaration

func invalidate()

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