Created
July 16, 2012 19:33
-
-
Save eholk/3124550 to your computer and use it in GitHub Desktop.
Various terminal state examples
This file contains hidden or 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
| // Current | |
| proto! oneshot { | |
| waiting:send { | |
| signal -> signaled | |
| } | |
| signaled:send { } | |
| } | |
| // terminal state annotation | |
| proto! oneshot { | |
| waiting:send { | |
| signal -> signaled | |
| } | |
| signaled:! | |
| } | |
| // terminal state is empty | |
| proto! oneshot { | |
| waiting:send { | |
| signal -> signaled | |
| } | |
| signaled | |
| } | |
| // terminal message annotation | |
| proto! oneshot { | |
| waiting:send { | |
| signal -> ! | |
| } | |
| } | |
| // -> () might make more sense... | |
| proto! oneshot { | |
| waiting:send { | |
| signal -> () | |
| } | |
| } | |
| // or just ... | |
| proto! oneshot { | |
| waiting:send { | |
| signal | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment