Contents

CMTimebaseSetTimerDispatchSourceToFireImmediately(_:timerSource:)

Sets the timer dispatch source to fire immediately once, overriding any previous timer call.

Declaration

func CMTimebaseSetTimerDispatchSourceToFireImmediately(_ timebase: CMTimebase, timerSource: dispatch_source_t) -> OSStatus

Discussion

The timer source you specify must be on the list of timers the timebase manages. This is equivalent to calling dispatch_source_set_timer(timerSource, DISPATCH_TIME_NOW, 0, 0 ); except that the timebase gets to know that it shouldn’t interfere.

See Also

Interacting with Timers