cancel_safe_futures/sync/mod.rs
1//! Alternative synchronization primitives that are more cancellation-aware.
2//!
3//! Currently, this crate contains [`RobustMutex`], which is a variant on an async mutex that is more
4//! cancel-safe. For more about how this differs from [`tokio::sync::Mutex`], see the documentation
5//! for [`RobustMutex`].
6
7#[cfg(feature = "std")]
8mod mutex;
9#[cfg(feature = "std")]
10mod poison;
11
12#[cfg(feature = "std")]
13pub use mutex::*;
14#[cfg(feature = "std")]
15pub use poison::{LockResult, PoisonError, TryLockError, TryLockResult};