Function leptos::set_interval

source ยท
pub fn set_interval(cb: impl Fn() + 'static, duration: Duration)
Expand description

Repeatedly calls the given function, with a delay of the given duration between calls, returning a cancelable handle. See setInterval().