11 stable releases

1.4.0 Sep 22, 2020
1.3.0 Sep 7, 2020
1.2.0 Aug 29, 2020
1.1.5 Jun 24, 2020
0.1.0 Jun 2, 2019

#405 in Concurrency

Download history 43034/week @ 2023-11-28 46382/week @ 2023-12-05 48540/week @ 2023-12-12 42421/week @ 2023-12-19 23959/week @ 2023-12-26 42436/week @ 2024-01-02 45738/week @ 2024-01-09 48720/week @ 2024-01-16 50991/week @ 2024-01-23 44284/week @ 2024-01-30 43021/week @ 2024-02-06 40197/week @ 2024-02-13 47546/week @ 2024-02-20 45558/week @ 2024-02-27 47174/week @ 2024-03-05 15206/week @ 2024-03-12

163,906 downloads per month
Used in 452 crates (34 directly)

Apache-2.0 OR MIT

15KB
212 lines

async-lock

Build License Cargo Documentation

Async synchronization primitives.

This crate provides the following primitives:

  • Barrier - enables tasks to synchronize all together at the same time.
  • Mutex - a mutual exclusion lock.
  • RwLock - a reader-writer lock, allowing any number of readers or a single writer.
  • Semaphore - limits the number of concurrent operations.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~130KB