Extract tracker into supervision tree.

This commit is contained in:
Nathan Walker
2017-04-25 20:45:48 -05:00
parent b71221977c
commit b2dfc28650
4 changed files with 35 additions and 28 deletions

View File

@@ -6,7 +6,8 @@ defmodule ElixirKoans do
import Supervisor.Spec
children = [
worker(Display, [])
worker(Display, []),
worker(Tracker, [])
]
opts = [strategy: :one_for_one, name: ElixirKoans.Supervisor]