leptos_use

Function use_web_lock_with_options

Source
pub async fn use_web_lock_with_options<C, F, R>(
    name: &str,
    callback: C,
    options: UseWebLockOptions,
) -> Result<R, UseWebLockError>
where C: FnOnce(Lock) -> F + 'static, F: Future<Output = R>, R: 'static,
Expand description

Version of crate::use_web_lock that takes a UseWebLockOptions. See crate::use_web_lock for how to use.