Expand description
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.
Structs§
- Action
Permit std - A token that grants the ability to run one closure against the data guarded by a
RobustMutex. - Poison
Error std - A type of error which can be returned whenever a
RobustMutexis acquired. - Robust
Mutex std - A cancel-safe and panic-safe variant of
tokio::sync::Mutex.
Enums§
- TryLock
Error std - An enumeration of possible errors associated with a
TryLockResultwhich can occur while trying to acquire a lock, from thetry_lockmethod on aRobustMutex.
Type Aliases§
- Lock
Result std - A type alias for the result of a lock method which can be poisoned.
- TryLock
Result std - A type alias for the result of a nonblocking locking method.