leptos-use 0.20.0

Collection of essential Leptos utilities inspired by React-Use / VueUse
Documentation
//! Generated by the micro crate split: deprecated forwarding wrappers.

#[cfg(web_sys_unstable_apis)]
pub mod use_web_lock {
    use ::leptos_use_web_lock::*;

    use std::future::Future;

    #[doc = " Deprecated forwarding wrapper of [`leptos_use_web_lock::use_web_lock`](https://docs.rs/leptos-use-web-lock/latest/leptos_use_web_lock/fn.use_web_lock.html).\n\n Add the `leptos-use-web-lock` crate to your dependencies and use `leptos_use_web_lock::use_web_lock` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-web-lock` to your dependencies and use `leptos_use_web_lock::use_web_lock` instead."
    )]
    #[inline(always)]
    pub async fn use_web_lock<C, F, R>(name: &str, callback: C) -> Result<R, UseWebLockError>
    where
        C: FnOnce(web_sys::Lock) -> F + 'static,
        F: Future<Output = R>,
        R: 'static,
    {
        ::leptos_use_web_lock::use_web_lock::<C, F, R>(name, callback).await
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_web_lock::use_web_lock_with_options`](https://docs.rs/leptos-use-web-lock/latest/leptos_use_web_lock/fn.use_web_lock_with_options.html).\n\n Add the `leptos-use-web-lock` crate to your dependencies and use `leptos_use_web_lock::use_web_lock_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-web-lock` to your dependencies and use `leptos_use_web_lock::use_web_lock_with_options` instead."
    )]
    #[inline(always)]
    pub async fn use_web_lock_with_options<C, F, R>(
        name: &str,
        callback: C,
        options: UseWebLockOptions,
    ) -> Result<R, UseWebLockError>
    where
        C: FnOnce(web_sys::Lock) -> F + 'static,
        F: Future<Output = R>,
        R: 'static,
    {
        ::leptos_use_web_lock::use_web_lock_with_options::<C, F, R>(name, callback, options).await
    }
}