Commit Graph

3 Commits

Author SHA1 Message Date
Chris Krycho
42b59635d2 Ch. 17: General cleanup and edits to esp. 17.05
- Introduce diagrams into 17.05 to break up the wall of text and make it
  easier to visualize.
- Extract the state machine code to make it easier to reference.
- Standardize on `await` instead of `.await` for inline code references.
- Move note about `race` and `select` up to 17.01 since the text now
  references it there, and update the text in 17.03 to account for
  already having introduced the function.
- Fix up a number of code samples to avoid showing `extern crate trpl;`.
- Rewrite the transition between 17.04 and 17.05 to account for having
  restructured the chapter.
- Rework the example code in 17.05 to refer to the `page_title` example
  from the rewritten 17.01 instead of the (now-removed) `hello`.
- When discussing the `Future::poll` method, explicitly address the `cx`
  parameter: note what it is used for, and then move on.
2024-09-25 08:49:28 -06:00
Chris Krycho
472f152eae Ch. 17: fix diagrams and embed them in the text
- Swap the ordering to match the order in the text (concurrent is first,
  at least for now).
- Make them go left-to-right instead of top-to-bottom for compactness in
  the text.
- Fix rendering issues resulting from the VS Code extension doing things
  that normal `dot` does not, for who knows what reasons.
2024-07-26 13:39:07 -06:00
Chris Krycho
cfaf187bbc Ch. 17: diagrams for concurrent and parallel execution 2024-07-25 15:29:40 -06:00