Function leptos_dom::helpers::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()
.