1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Alternative synchronization primitives that are more cancellation-aware.
//!
//! Currently, this crate contains [`RobustMutex`], which is a variant on an async mutex that is more
//! cancel-safe. For more about how this differs from [`tokio::sync::Mutex`], see the documentation
//! for [`RobustMutex`].

#[cfg(feature = "std")]
mod mutex;
#[cfg(feature = "std")]
mod poison;

#[cfg(feature = "std")]
pub use mutex::*;
#[cfg(feature = "std")]
pub use poison::{LockResult, PoisonError, TryLockError, TryLockResult};