Skip to main content

set_timeout

Function set_timeout 

Source
pub fn set_timeout(func: impl FnOnce() + 'static, delay_ms: i32) -> Result<i32>
Expand description

setTimeout(func, delay_ms) for a one-shot callback.