Skip to content

Instantly share code, notes, and snippets.

@StoneCypher
Last active August 29, 2015 14:00
Show Gist options
  • Save StoneCypher/11097999 to your computer and use it in GitHub Desktop.
Save StoneCypher/11097999 to your computer and use it in GitHub Desktop.
general structure of a receive driven process
some_loop() ->
receive
case ->
handle,
some_loop();
case ->
handle,
some_loop();
case ->
handle,
some_loop();
terminate ->
ok;
_UnknownMessage ->
% ignored
some_loop()
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment