Function leptos::set_interval_with_handle

source ยท
pub fn set_interval_with_handle(
    cb: impl Fn() + 'static,
    duration: Duration
) -> Result<IntervalHandle, JsValue>
Expand description

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