4 releases (stable)

1.1.0 Sep 22, 2020
1.0.1 Sep 1, 2020
1.0.0 Aug 29, 2020
0.1.0 May 29, 2020

#5 in #rendezvous

Download history 52/week @ 2024-03-13 47/week @ 2024-03-20 55/week @ 2024-03-27 44/week @ 2024-04-03 36/week @ 2024-04-10 43/week @ 2024-04-17 46/week @ 2024-04-24 37/week @ 2024-05-01 51/week @ 2024-05-08 92/week @ 2024-05-15 200/week @ 2024-05-22 313/week @ 2024-05-29 206/week @ 2024-06-05 146/week @ 2024-06-12 157/week @ 2024-06-19 118/week @ 2024-06-26

681 downloads per month

Apache-2.0 OR MIT

21KB
266 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