Skip to content

Commit

Permalink
adding docs on exercises in chapter 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Tajinder Chumber committed Aug 15, 2018
1 parent 470baf7 commit 62f8be6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chapter3/excersises.ex
Original file line number Diff line number Diff line change
@@ -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, [])
Expand Down

0 comments on commit 62f8be6

Please sign in to comment.