From 62f8be6026f56b9dec07fb4cf237e68c3fa678cb Mon Sep 17 00:00:00 2001 From: Tajinder Chumber Date: Wed, 15 Aug 2018 14:25:17 +0100 Subject: [PATCH] adding docs on exercises in chapter 3 --- chapter3/excersises.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chapter3/excersises.ex b/chapter3/excersises.ex index a92b69e..b05ed13 100644 --- a/chapter3/excersises.ex +++ b/chapter3/excersises.ex @@ -1,4 +1,10 @@ defmodule Exercise do + @moduledoc """ + Exercises from The Little Elixir & OTP Guidebook, Section 3.6 + + Write a program that spawns two processes. The first process, on receiving a `ping` messag, should reply with a `pong` message. The second process, on receiving a `pong` message, should reply with a `ping` message. + """ + def run() do pboss = spawn(ProcessBoss, :loop, []) pid1 = spawn(Process1, :loop, [])