Function leptos::set_timeout_with_handle

source ยท
pub fn set_timeout_with_handle(
    cb: impl FnOnce() + 'static,
    duration: Duration,
) -> Result<TimeoutHandle, JsValue>
Expand description

Executes the given function after the given duration of time has passed, returning a cancelable handle. setTimeout().