Skip to main content

set_interval

Function set_interval 

Source
pub fn set_interval(callback_id: u32, interval_ms: u32) -> u32
Expand description

Schedule a repeating timer that fires every interval_ms milliseconds. When it fires the host calls your exported on_timer(callback_id). Returns a timer ID that can be passed to clear_timer.