-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge
async-edits
into only-new-async
- Loading branch information
Showing
99 changed files
with
1,850 additions
and
1,301 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
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"; | ||
|
||
// for horizontal alignment purposes only | ||
// newrank = true; | ||
|
||
B0 [style = invis;]; | ||
|
||
B1; | ||
B2; | ||
B3; | ||
|
||
B0 -> B1 -> B2 -> B3 [style = invis;]; | ||
} | ||
|
||
A1 -> B1 -> A2 -> B2 -> A3 -> A4 -> B3; | ||
} |
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,20 @@ | ||
digraph { | ||
dpi = 300.0; | ||
|
||
rankdir = "LR"; | ||
splines = false; | ||
cluster = true; | ||
|
||
node [shape = diamond;]; | ||
|
||
subgraph cluster_ColleagueA { | ||
newrank = true; | ||
label = "Task 1"; | ||
A1 -> A2 -> A3 -> A4; | ||
} | ||
|
||
subgraph cluster_ColleagueB { | ||
label = "Task 2"; | ||
B1 -> B2 -> B3; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate trpl; // required for mdbook test | ||
|
||
// ANCHOR: main | ||
fn main() { | ||
trpl::block_on(async { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate trpl; // required for mdbook test | ||
|
||
use std::time::Duration; | ||
|
||
fn main() { | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate trpl; // required for mdbook test | ||
|
||
use std::time::Duration; | ||
|
||
fn main() { | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate trpl; // required for mdbook test | ||
|
||
fn main() { | ||
trpl::block_on(async { | ||
// ANCHOR: channel | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate trpl; // required for mdbook test | ||
|
||
use std::time::Duration; | ||
|
||
fn main() { | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate trpl; // required for mdbook test | ||
|
||
use std::time::Duration; | ||
|
||
fn main() { | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate trpl; // required for mdbook test | ||
|
||
use std::time::Duration; | ||
|
||
fn main() { | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate trpl; // required for mdbook test | ||
|
||
use std::time::Duration; | ||
|
||
fn main() { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate trpl; // required for mdbook test | ||
|
||
use std::time::Duration; | ||
|
||
fn main() { | ||
|
Oops, something went wrong.