@@ -11,7 +11,7 @@ to produce a value.
11
11
12
12
More specifically, an ` <expr>.await ` expression has the following effect.
13
13
14
- 1 . Evaluate ` <expr> ` to a future ` tmp ` ;
14
+ 1 . Evaluate ` <expr> ` to a [ future] ` tmp ` ;
15
15
2 . Pin ` tmp ` using ` Pin::new_unchecked ` ;
16
16
3 . This pinned future is then polled by calling the [ ` Future::poll ` ] method and
17
17
passing it the current task context (see below);
@@ -23,6 +23,7 @@ More specifically, an `<expr>.await` expression has the following effect.
23
23
value contained in the [ ` Poll::Ready ` ] variant is used as the result
24
24
of the ` await ` expression itself.
25
25
26
+ [ future ] : https://doc.rust-lang.org/std/future/trait.Future.html
26
27
[ _Expression_ ] : expressions.html
27
28
[ `Future::poll` ] : https://doc.rust-lang.org/std/future/trait.Future.html#tymethod.poll
28
29
[ `Context` ] : https://doc.rust-lang.org/std/task/struct.Context.html
@@ -34,9 +35,9 @@ More specifically, an `<expr>.await` expression has the following effect.
34
35
## Task context
35
36
36
37
The task context refers to the [ ` Context ` ] which was supplied to the
37
- current [ async context] when it itself was polled. Because ` await `
38
- expressions are only legal in an async context, there must be some
39
- task context available.
38
+ current [ async context] when the async context itself was
39
+ polled. Because ` await ` expressions are only legal in an async
40
+ context, there must be some task context available.
40
41
41
42
[ `Context` ] : https://doc.rust-lang.org/std/task/struct.Context.html
42
43
[ async context ] : ../expressions/block-expr.html#async-context
0 commit comments