Add the rest of the damn presentation

This commit is contained in:
Vincent Ambo 2016-09-22 15:37:17 +02:00
parent 6c456a06c7
commit fac2474ac6
5 changed files with 164 additions and 6 deletions

12
src/hello_server.erl Normal file
View file

@ -0,0 +1,12 @@
-module(hello_server).
-export([start_server/0, server/0]).
start_server() ->
spawn(fun() -> server() end).
server() ->
receive
{greet, Name} ->
io:format("Hello ~s!~n", [Name]),
hello_server:server()
end.