-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Expose isReady to check if sync will block (#123 #22) * update README * Add test * The CI is very bad at precise sleep
- Loading branch information
Showing
8 changed files
with
67 additions
and
15 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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
digraph awaitFSA{ | ||
splines=ortho; | ||
node [shape = doublecircle]; InitialState AW_Exit; | ||
node [shape = circle, fontcolor=white, fillcolor=darkslategrey, style="filled"]; AW_Steal AW_SuccessfulTheft AW_CheckTask AW_OutOfChildTasks; | ||
node [shape = circle, fontcolor=white, fillcolor=darkslategrey, style="filled"]; AW_Steal AW_SuccessfulTheft AW_CheckTask AW_OutOfDirectChildTasks; | ||
InitialState -> AW_CheckTask [color="black:invis:black", xlabel="entry point"]; | ||
node [shape = octagon, fontcolor=black, fillcolor=lightsteelblue, style="rounded,filled"]; AW_Steal_AWE_ReceivedTask AW_CheckTask_AWE_HasChildTask ; | ||
node [shape = diamond, fontcolor=black, fillcolor=coral, style="rounded,filled"]; AW_Steal_AWE_FutureReady AW_CheckTask_AWE_FutureReady AW_OutOfChildTasks_AWE_FutureReady ; | ||
node [shape = diamond, fontcolor=black, fillcolor=coral, style="rounded,filled"]; AW_Steal_AWE_FutureReady AW_CheckTask_AWE_FutureReady AW_OutOfDirectChildTasks_AWE_FutureReady ; | ||
AW_Steal_AWE_ReceivedTask [label="AWE_ReceivedTask\nlootedTask"]; | ||
AW_CheckTask_AWE_HasChildTask [label="AWE_HasChildTask\nnot task.isNil"]; | ||
AW_Steal_AWE_FutureReady [label="AWE_FutureReady\nisFutReady(fv)"]; | ||
AW_CheckTask_AWE_FutureReady [label="AWE_FutureReady\nisFutReady(fv)"]; | ||
AW_OutOfChildTasks_AWE_FutureReady [label="AWE_FutureReady\nisFutReady(fv)"]; | ||
AW_Steal_AWE_FutureReady [label="AWE_FutureReady\ntryComplete(fv, parentResult)"]; | ||
AW_CheckTask_AWE_FutureReady [label="AWE_FutureReady\ntryComplete(fv, parentResult)"]; | ||
AW_OutOfDirectChildTasks_AWE_FutureReady [label="AWE_FutureReady\ntryComplete(fv, parentResult)"]; | ||
AW_Steal -> AW_Steal_AWE_FutureReady[style=bold, xlabel="always"]; | ||
AW_Steal_AWE_FutureReady -> AW_Exit [color="coral", fontcolor="coral", xlabel="interrupted"]; | ||
AW_Steal_AWE_FutureReady -> AW_Steal_AWE_ReceivedTask[xlabel="normal flow"]; | ||
AW_Steal_AWE_ReceivedTask -> AW_SuccessfulTheft [style=dashed, xlabel="true"]; | ||
AW_Steal_AWE_ReceivedTask -> AW_Steal [xlabel="default"]; | ||
AW_SuccessfulTheft -> AW_OutOfChildTasks [xlabel="default"]; | ||
AW_SuccessfulTheft -> AW_OutOfDirectChildTasks [xlabel="default"]; | ||
AW_CheckTask -> AW_CheckTask_AWE_FutureReady[style=bold, xlabel="always"]; | ||
AW_CheckTask_AWE_FutureReady -> AW_Exit [color="coral", fontcolor="coral", xlabel="interrupted"]; | ||
AW_CheckTask_AWE_FutureReady -> AW_CheckTask_AWE_HasChildTask[xlabel="normal flow"]; | ||
AW_CheckTask_AWE_HasChildTask -> AW_CheckTask [style=dashed, xlabel="true"]; | ||
AW_CheckTask_AWE_HasChildTask -> AW_OutOfChildTasks [xlabel="default"]; | ||
AW_OutOfChildTasks -> AW_OutOfChildTasks_AWE_FutureReady[style=bold, xlabel="always"]; | ||
AW_OutOfChildTasks_AWE_FutureReady -> AW_Exit [color="coral", fontcolor="coral", xlabel="interrupted"]; | ||
AW_OutOfChildTasks_AWE_FutureReady -> AW_Steal [xlabel="default"]; | ||
AW_CheckTask_AWE_HasChildTask -> AW_OutOfDirectChildTasks [xlabel="default"]; | ||
AW_OutOfDirectChildTasks -> AW_OutOfDirectChildTasks_AWE_FutureReady[style=bold, xlabel="always"]; | ||
AW_OutOfDirectChildTasks_AWE_FutureReady -> AW_Exit [color="coral", fontcolor="coral", xlabel="interrupted"]; | ||
AW_OutOfDirectChildTasks_AWE_FutureReady -> AW_Steal [xlabel="default"]; | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.