Function leptos::request_idle_callback_with_handle

source ยท
pub fn request_idle_callback_with_handle(
    cb: impl Fn() + 'static
) -> Result<IdleCallbackHandle, JsValue>
Expand description

Queues the given function during an idle period using Window.requestIdleCallback, returning a cancelable handle.