4 releases (stable)

1.2.0 Sep 22, 2020
1.1.0 Sep 7, 2020
1.0.0 Aug 29, 2020
0.1.0 Jun 2, 2019

#1263 in Concurrency

Download history 2245/week @ 2024-07-20 4505/week @ 2024-07-27 2702/week @ 2024-08-03 2998/week @ 2024-08-10 3626/week @ 2024-08-17 4989/week @ 2024-08-24 3722/week @ 2024-08-31 2511/week @ 2024-09-07 813/week @ 2024-09-14 675/week @ 2024-09-21 332/week @ 2024-09-28 348/week @ 2024-10-05 398/week @ 2024-10-12 317/week @ 2024-10-19 295/week @ 2024-10-26 491/week @ 2024-11-02

1,542 downloads per month
Used in 3 crates (2 directly)

Apache-2.0 OR MIT

8KB
94 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

~135KB