Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.306 kb
-module(echo).
-export([start/0, print/1, stop/0]).
start() ->
register(echo, erlang:spawn(fun loop/0)).
print(Term) ->
io:format("Received: ~w~n", [Term]).
stop() ->
io:format("Stopping"),
ok.
loop() ->
receive
stop ->
stop();
Term ->
print(Term),
loop()
end.
Jump to Line
Something went wrong with that request. Please try again.