Skip to content

Commit

Permalink
Fix duplicate words
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Apr 1, 2020
1 parent a98de2a commit b6d09c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/content/second-edition/posts/12-async-await/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ In case you're interested in understanding how to safely implement a future comb

### Executors and Wakers

Using async/await, it is possible to ergonomically work with futures in a completely asynchronous way. However, as we learned above, futures do nothing until they are polled. This means we have to have to call `poll` on them at some point, otherwise the asynchronous code is never executed.
Using async/await, it is possible to ergonomically work with futures in a completely asynchronous way. However, as we learned above, futures do nothing until they are polled. This means we have to call `poll` on them at some point, otherwise the asynchronous code is never executed.

With a single future, we can always wait for each future manually using a loop [as described above](#waiting-on-futures). However, this approach is very inefficient and not practical for programs that create a large number of futures. The most common solution for this problem is to define a global _executor_ that is responsible for polling all futures in the system until they are finished.

Expand Down

0 comments on commit b6d09c8

Please sign in to comment.