Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/ch17-05-traits-for-async.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ yet ready.
### The `Pin` Type and the `Unpin` Trait

Back in Listing 17-13, we used the `trpl::join!` macro to await three
futures. However, it’s common to have a collection such as a vector containing
some number futures that won’t be known until runtime. Let’s change Listing
17-13 to the code in Listing 17-23 that puts the three futures into a vector
and calls the `trpl::join_all` function instead, which won’t compile yet.
futures. However, it’s common to have a collection, such as a vector,
containing many futures the exact number of which won’t be known until runtime.
Let’s change Listing 17-13 to the code in Listing 17-23 that puts the three
futures into a vector and calls the `trpl::join_all` function instead,
which won’t compile yet.

<Listing number="17-23" caption="Awaiting futures in a collection" file-name="src/main.rs">

Expand Down