Skip to main content

kill_timer

Function kill_timer 

Source
pub unsafe fn kill_timer(timer: *mut ITimer)
Expand description

Kills an active timer, stopping future fires.

After kill, the server calls TimerTimeOutHandler::free(timer) allowing the heap-allocated handler to be released. Without it, the handler leaks.

ยงSafety

timer must be a valid pointer returned by create_repeating_timer.