From da1ce1e35093499143eff49b55db3fdfbbd88c86 Mon Sep 17 00:00:00 2001 From: Paul Schoenfelder Date: Thu, 1 Dec 2016 16:09:20 -0600 Subject: Close #58 - address linking of client processes in examples --- lib/exirc/exirc.ex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/exirc') diff --git a/lib/exirc/exirc.ex b/lib/exirc/exirc.ex index b32af54..c36e6e4 100644 --- a/lib/exirc/exirc.ex +++ b/lib/exirc/exirc.ex @@ -45,7 +45,7 @@ defmodule ExIrc do end @doc """ - Start a new ExIrc client + Start a new ExIrc client under the ExIrc supervisor """ @spec start_client! :: {:ok, pid} | {:error, term} def start_client! do @@ -53,6 +53,13 @@ defmodule ExIrc do Supervisor.start_child(:exirc, [[owner: self()]]) end + @doc """ + Start a new ExIrc client + """ + def start_link! do + ExIrc.Client.start!([owner: self()]) + end + ############## # Supervisor API ############## -- cgit v1.2.3