Extracted watcher and runner into supervision tree.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user