We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4db853 + bf09ee2 commit 926d49aCopy full SHA for 926d49a
README.md
@@ -13,7 +13,7 @@
13
14
FOR LEARNING PURPOSES ONLY
15
16
-This is a greatly simplified implementation of [Future combinators](https://docs.rs/futures-preview/0.3.0-alpha.13/futures/)
+This is a greatly simplified implementation of [Future combinators](https://docs.rs/futures-preview/0.3.0-alpha.18/futures/)
17
like `FutureExt::map`, `TryFutureExt::and_then`...
18
19
# Requirements
@@ -71,9 +71,8 @@ To understand how combinators work by looking at clean source code. Compare:
71
```rust
72
pub async fn then<...>(future, f) -> ...
73
{
74
- let future_result = await!(future);
75
- let new_future = f(future_result);
76
- await!(new_future)
+ let new_future = f(future.await);
+ new_future.await
77
}
78
```
79
0 commit comments