Overview of async-lock synchronization primitives
masterThe async-lock crate provides a set of asynchronous synchronization primitives designed for use in async Rust environments. It includes tools for managing mutual exclusion, shared access, and task synchronization.
Available primitives:
Barrier: Synchronizes multiple tasks so they all reach a certain point before proceeding.Mutex: Provides mutual exclusion, ensuring only one task can access data at a time.OnceCell: A memory location that can be written to exactly once.RwLock: A reader-writer lock that allows multiple concurrent readers or a single exclusive writer.Semaphore: Limits the number of concurrent operations allowed to proceed.