CFRunLoopObserverInvalidate(_:)
Invalidates a CFRunLoopObserver object, stopping it from ever firing again.
Declaration
func CFRunLoopObserverInvalidate(_ observer: CFRunLoopObserver!)Parameters
- observer:
The run loop observer to invalidate.
Discussion
Once invalidated, observer will never fire and call its callback function again. This function automatically removes observer from all run loop modes in which it had been added. The memory is not deallocated unless the run loop held the only reference to observer.