Future-aware cell that can move borrows into futures and closures.
A future-aware borrow allows a value to be borrowed such that the borrow can be
moved into closures passed to Future
combinators.
To use futures-borrow
, first add this to your Cargo.toml
:
[dependencies]
futures-borrow = { git = "https://github.com/carllerche/futures-borrow" } # Soon on crates.io
Next, add this to your crate:
extern crate futures_borrow;
fn main() {
// ...
}
futures-borrow
is primarily distributed under the terms of both the MIT license
and the Apache License (Version 2.0), with portions covered by various BSD-like
licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.