forked from rust-lang/book
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ch. 17: Add a new §05 on Stream and AsyncIterator
This pushes back the Tasks, Futures, and Threads discussion one more spot, to become §06.
- Loading branch information
1 parent
c0c24e2
commit 74df84e
Showing
5 changed files
with
18 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Streams and Async Iterators | ||
|
||
<!-- | ||
- Motivation: you can do a lot with `while let` but it would be nice to be able | ||
to use `for` loops, even `async for`. (But we don’t get those from the | ||
ecosystem traits… so maybe only call them out in a `Note: …` context?) | ||
- The basic API, with `poll_next()`, plus the “surface” syntax, `.next().await`. | ||
- How to use it, with a worked example from . | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Futures, Tasks, and Threads |