15 stable releases

new 2.1.3 Sep 15, 2020
2.1.2 Sep 7, 2020
2.1.1 Aug 29, 2020
1.1.5 Aug 20, 2020
0.1.0 May 22, 2019

#383 in Concurrency

Download history 35/week @ 2020-05-30 47/week @ 2020-06-06 95/week @ 2020-06-13 106/week @ 2020-06-20 384/week @ 2020-06-27 178/week @ 2020-07-04 96/week @ 2020-07-11 223/week @ 2020-07-18 191/week @ 2020-07-25 467/week @ 2020-08-01 339/week @ 2020-08-08 870/week @ 2020-08-15 1176/week @ 2020-08-22 1425/week @ 2020-08-29 2236/week @ 2020-09-05 3146/week @ 2020-09-12

3,082 downloads per month
Used in 22 crates (5 directly)

Apache-2.0 OR MIT

8KB

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

~82KB