leptos_use

Function use_interval_fn_with_options

Source
pub fn use_interval_fn_with_options<CbFn, N>(
    callback: CbFn,
    interval: N,
    options: UseIntervalFnOptions,
) -> Pausable<impl Fn() + Clone, impl Fn() + Clone>
where CbFn: Fn() + Clone + 'static, N: Into<MaybeSignal<u64>>,
Expand description

Version of use_interval_fn that takes UseIntervalFnOptions. See use_interval_fn for how to use.