Skip to content

Instantly share code, notes, and snippets.

@sandfox
Created July 8, 2012 13:28
Show Gist options
  • Save sandfox/3070961 to your computer and use it in GitHub Desktop.
Save sandfox/3070961 to your computer and use it in GitHub Desktop.
-module(hello).
-export([start/0]).
start() ->
spawn(fun() -> loop() end).
loop() ->
receive
hello ->
io:format("Hello, World!~n"),
loop();
goodbye ->
ok
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment