diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-21T00·37+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-21T00·38+0000 |
commit | 8ab71587a7fe532785950ed9dbc2bcfa1acdfcc4 (patch) | |
tree | d83d3b872c8710dbf22292f3e317f9e77018bc49 /presentations/erlang-2016/src/hello_server.erl | |
parent | 421ef0a77f366cfa7d7d658f685f63da0264df87 (diff) |
chore(erlang-presentation): Prepare for depot merge
Diffstat (limited to 'presentations/erlang-2016/src/hello_server.erl')
-rw-r--r-- | presentations/erlang-2016/src/hello_server.erl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/presentations/erlang-2016/src/hello_server.erl b/presentations/erlang-2016/src/hello_server.erl new file mode 100644 index 000000000000..01df14ac57d5 --- /dev/null +++ b/presentations/erlang-2016/src/hello_server.erl @@ -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. |