Skip to main content

local_async_utils/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2
3pub mod sealed;
4pub mod shared;
5#[cfg(feature = "tokio")]
6#[cfg_attr(docsrs, doc(cfg(feature = "tokio")))]
7pub mod split;
8pub mod stopwatch;
9pub mod sync;
10mod time;
11
12pub mod prelude {
13    pub use crate::sealed;
14    pub use crate::shared::*;
15    #[cfg(feature = "tokio")]
16    #[cfg_attr(docsrs, doc(cfg(feature = "tokio")))]
17    pub use crate::split as local_split;
18    pub use crate::stopwatch::Stopwatch;
19    pub use crate::sync::bounded as local_bounded;
20    pub use crate::sync::condvar as local_condvar;
21    pub use crate::sync::error as local_sync_error;
22    pub use crate::sync::oneshot as local_oneshot;
23    #[cfg(feature = "tokio")]
24    #[cfg_attr(docsrs, doc(cfg(feature = "tokio")))]
25    pub use crate::sync::pipe as local_pipe;
26    pub use crate::sync::semaphore as local_semaphore;
27    pub use crate::sync::unbounded as local_unbounded;
28    pub use crate::{
29        debug_stopwatch, error_stopwatch, info_stopwatch, trace_stopwatch, warn_stopwatch,
30    };
31    pub use crate::{define_with, define_with_unchecked};
32    pub use crate::{millisec, min, sec};
33}