Modules
distributedA lock shared between servers: a lease on a Redis key that only its holder can refresh or release.errorThe error type shared by every lock.fileAdvisory locks on files, shared between processes on one machine.semaphoreIn-process locks: a `Semaphore` for a bounded number of holders and a `Mutex` for one.
Contents
use utopia_lock::Wait;Rust
pub enum WaitHow long Lock::acquire waits for a lock someone else holds.
use utopia_lock::Lock;Rust
pub trait Lock: SyncA lock that can be acquired, released, and held around a section.