We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ac73f commit c058f9aCopy full SHA for c058f9a
Cargo.toml
@@ -19,6 +19,7 @@ maintenance = { status = "experimental" }
19
20
[dependencies]
21
pin-utils = "=0.1.0-alpha.4"
22
+async-trait = "0.1.3"
23
24
[dependencies.futures]
25
version = "=0.3.0-alpha.18"
examples/future.rs
@@ -4,8 +4,8 @@ use futures_async_combinators::future::*;
4
fn main() {
5
executor::block_on(async {
6
let future = ready(Ok::<i32, i32>(1));
7
- let future = and_then(future, |x| ready(Ok::<i32, i32>(x + 3)));
8
- let future = inspect(future, |x| {
+ let future = future.and_then(|x| ready(Ok::<i32, i32>(x + 3)));
+ let future = future.inspect(|x| {
9
dbg!(x);
10
});
11
assert_eq!(future.await, Ok(4));
0 commit comments