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

#6 in #synchronize

Download history 122/week @ 2024-07-22 61/week @ 2024-07-29 98/week @ 2024-08-05 120/week @ 2024-08-12 127/week @ 2024-08-19 104/week @ 2024-08-26 38/week @ 2024-09-02 96/week @ 2024-09-09 34/week @ 2024-09-16 73/week @ 2024-09-23 145/week @ 2024-09-30 55/week @ 2024-10-07 68/week @ 2024-10-14 5/week @ 2024-10-21 22/week @ 2024-11-04

97 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