Skip to content

Instantly share code, notes, and snippets.

@l1x
Created February 1, 2011 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l1x/806765 to your computer and use it in GitHub Desktop.
Save l1x/806765 to your computer and use it in GitHub Desktop.
tutrial
run() ->
Pid = spawn(fun ping/0),
Pid ! self(),
receive
pong -> ok
end.
ping() ->
receive
From -> From ! pong
end.
@l1x
Copy link
Author

l1x commented Feb 1, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment