I will no longer be supporting this project. It is no longer used by myself and it has significant issues relating to deadlocks. A deprecation warning will appear in Rust stating this.
A Mutex for the Future(s)
Add this to your Cargo.toml
:
toml
[dependencies]
futures-mutex = "0.2.1"
Then, add this to your crate:
rust
extern crate futures_mutex;
FutMutex<T>
follows a very similar API to futures::sync::BiLock
, however it can have more than two handles.
futures-mutex
is distributed under the Apache License v2.0. See the LICENSE
file for the full text of the license.