1# async-lock
2
3[![Build](https://github.com/smol-rs/async-lock/workflows/Build%20and%20test/badge.svg)](
4https://github.com/smol-rs/async-lock/actions)
5[![License](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue.svg)](
6https://github.com/smol-rs/async-lock)
7[![Cargo](https://img.shields.io/crates/v/async-lock.svg)](
8https://crates.io/crates/async-lock)
9[![Documentation](https://docs.rs/async-lock/badge.svg)](
10https://docs.rs/async-lock)
11
12Async synchronization primitives.
13
14This crate provides the following primitives:
15
16* `Barrier` - enables tasks to synchronize all together at the same time.
17* `Mutex` - a mutual exclusion lock.
18* `RwLock` - a reader-writer lock, allowing any number of readers or a single writer.
19* `Semaphore` - limits the number of concurrent operations.
20
21## License
22
23Licensed under either of
24
25 * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
26 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
27
28at your option.
29
30#### Contribution
31
32Unless you explicitly state otherwise, any contribution intentionally submitted
33for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
34dual licensed as above, without any additional terms or conditions.
35