Skip to content

Instantly share code, notes, and snippets.

@eholk
Created July 16, 2012 19:33
Show Gist options
  • Select an option

  • Save eholk/3124550 to your computer and use it in GitHub Desktop.

Select an option

Save eholk/3124550 to your computer and use it in GitHub Desktop.
Various terminal state examples
// 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