summaryrefslogtreecommitdiffhomepage
path: root/elixir.html.markdown
diff options
context:
space:
mode:
authorchris@chriszimmerman.net <cjay.zimmerman@gmail.com>2015-10-15 20:59:18 -0400
committerchris@chriszimmerman.net <cjay.zimmerman@gmail.com>2015-10-15 20:59:18 -0400
commitd8001da79909734d333de31079ca2f4d884a6b21 (patch)
tree0a69f4c021dc8ebca30436d253577ac4b827077e /elixir.html.markdown
parent0671147741c186d27ae055fdceea71b06ec94f20 (diff)
Added an alternative way to fire up a process in Elixir.
Diffstat (limited to 'elixir.html.markdown')
-rw-r--r--elixir.html.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/elixir.html.markdown b/elixir.html.markdown
index c8599838..9fdf37e9 100644
--- a/elixir.html.markdown
+++ b/elixir.html.markdown
@@ -384,6 +384,8 @@ end
# Compile the module and create a process that evaluates `area_loop` in the shell
pid = spawn(fn -> Geometry.area_loop() end) #=> #PID<0.40.0>
+#Alternatively
+pid = spawn(Geometry, :area_loop, [])
# Send a message to `pid` that will match a pattern in the receive statement
send pid, {:rectangle, 2, 3}