#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
pub mod prelude;
pub mod flag; pub use flag::Flag;
pub mod state; pub use state::{ State, StateGuard };
pub use once_cell::{ self, sync::Lazy };
pub use arc_swap::{ self, ArcSwap };
#[macro_export]
macro_rules! lazy {
($e:expr) => {{
::atomic_state::Lazy::new(|| { $e })
}}
}
#[macro_export]
macro_rules! lazy_flag {
($e:expr) => {{
::atomic_state::Lazy::new(|| ::atomic_state::Flag::new($e))
}}
}
#[macro_export]
macro_rules! lazy_state {
($e:expr) => {{
::atomic_state::Lazy::new(|| ::atomic_state::State::new($e))
}}
}