Skip to main content

set_timeout

Function set_timeout 

Source
pub fn set_timeout(callback_id: u32, delay_ms: u32) -> u32
Expand description

Schedule a one-shot timer that fires after delay_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.