mirror of
https://github.com/rust-lang/book.git
synced 2026-03-31 09:13:28 -04:00
- 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.
41 lines
722 B
Plaintext
41 lines
722 B
Plaintext
digraph {
|
|
dpi = 300.0;
|
|
|
|
rankdir = "LR";
|
|
|
|
// makes ordering between subgraphs work
|
|
newrank = true;
|
|
|
|
node [shape = diamond;];
|
|
|
|
subgraph cluster_task_a {
|
|
label = "Task A";
|
|
|
|
A1;
|
|
A2;
|
|
A3;
|
|
A4;
|
|
|
|
A1 -> A2 -> A3 -> A4 -> A0 [style = invis;];
|
|
|
|
// for vertical alignment purposes only
|
|
A0 [style = invis;];
|
|
|
|
// Makes the heights line up between the boxes.
|
|
A4 -> A0 [style = invis;];
|
|
}
|
|
|
|
subgraph cluster_task_b {
|
|
label = "Task B";
|
|
|
|
B0 [style = invis;];
|
|
|
|
B1;
|
|
B2;
|
|
B3;
|
|
|
|
B0 -> B1 -> B2 -> B3 [style = invis;];
|
|
}
|
|
|
|
A1 -> B1 -> A2 -> B2 -> A3 -> A4 -> B3;
|
|
} |