Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Travis Cross <[email protected]>
  • Loading branch information
nrc and traviscross authored Nov 18, 2024
1 parent 99065d4 commit 2fe94ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/part-guide/adv-async-await.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ let s2 = async {
};
```

If we were to execute this snippet, `s1` would be a string which could be printed, but `s2` would be a future - `question()` would not have been called. To print `s2`, we first have to `s2.await`.
If we were to execute this snippet, `s1` would be a string which could be printed, but `s2` would be a future; `question()` would not have been called. To print `s2`, we first have to `s2.await`.

An async block is the simplest way to create a future, and the simplest way to create an async context for deferred work.

Expand Down

0 comments on commit 2fe94ca

Please sign in to comment.