Contents

CMTimebaseSetTimerToFireImmediately(_:timer:)

Sets the timer to fire immediately once, overriding any previous timer calls.

Declaration

func CMTimebaseSetTimerToFireImmediately(_ timebase: CMTimebase, timer: CFRunLoopTimer) -> OSStatus

Discussion

The timer must be on the list of timers managed by the timebase. This is equivalent to calling CFRunLoopTimerSetNextFireDate( timer, CFAbsoluteTimeGetCurrent() ); except that the timebase gets to know that it shouldn’t interfere.

See Also

Interacting with Timers