Instance Method

invalidate()

Removes the display link from all run loop modes.

Declaration

func invalidate()

Discussion

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.

See Also

Scheduling the Display Link to Send Notifications

func add(to: RunLoop, forMode: RunLoop.Mode)

Registers the display link with a run loop.

func remove(from: RunLoop, forMode: RunLoop.Mode)

Removes the display link from the run loop for the given mode.