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

#8 in #synchronization

Download history 283/week @ 2020-12-15 285/week @ 2020-12-22 144/week @ 2020-12-29 199/week @ 2021-01-05 94/week @ 2021-01-12 106/week @ 2021-01-19 133/week @ 2021-01-26 104/week @ 2021-02-02 84/week @ 2021-02-09 153/week @ 2021-02-16 53/week @ 2021-02-23 40/week @ 2021-03-02 31/week @ 2021-03-09 30/week @ 2021-03-16 56/week @ 2021-03-23 34/week @ 2021-03-30

644 downloads per month

Apache-2.0 OR MIT

19KB
262 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

~34KB