Skip to content

Instantly share code, notes, and snippets.

@darkua
Created October 23, 2009 16:24
Show Gist options
  • Select an option

  • Save darkua/217014 to your computer and use it in GitHub Desktop.

Select an option

Save darkua/217014 to your computer and use it in GitHub Desktop.
-module(hello2).
-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