futures-locks

Crates.iofutures-locks
lib.rsfutures-locks
version0.7.1
sourcesrc
created_at2018-06-05 19:23:43.846862
updated_at2022-12-07 23:42:35.191771
descriptionFutures-aware lock primitives
homepage
repositoryhttps://github.com/asomers/futures-locks
max_upload_size
id68765
size80,068
Alan Somers (asomers)

documentation

https://docs.rs/futures-locks

README

futures-locks

A library of Futures-aware locking primitives. These locks can safely be used in asynchronous environments like Tokio. When they block, they'll only block a single task, not the entire reactor.

Build Status CodeCov.io

# Cargo.toml
[dependencies]
futures = "0.3.1"
futures-locks = "0.6"

Usage

Generally, the provided primitives work much like their counterparts from the standard library. But instead of blocking until ready, they return Futures which will become ready when the lock is acquired. See the doc comments for individual examples.

futures-locks requires Rust 1.49.0 or higher.

License

futures-locks is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, and LICENSE-MIT for details

Commit count: 151

cargo fmt