Extracted watcher and runner into supervision tree.

This commit is contained in:
Nathan Walker
2017-04-26 21:38:22 -05:00
parent 3c73ea00fa
commit 372d7f70ac
6 changed files with 78 additions and 55 deletions

View File

@@ -7,7 +7,9 @@ defmodule ElixirKoans do
children = [
worker(Display, []),
worker(Tracker, [])
worker(Tracker, []),
worker(Runner, []),
worker(Watcher, [])
]
opts = [strategy: :one_for_one, name: ElixirKoans.Supervisor]