Extract display into supervision tree.

This commit is contained in:
Nathan Walker
2017-04-24 19:02:53 -05:00
parent 9025744154
commit b71221977c
6 changed files with 91 additions and 53 deletions

15
lib/elixir_koans.ex Normal file
View File

@@ -0,0 +1,15 @@
defmodule ElixirKoans do
use Application
alias Options
def start(_type, _args) do
import Supervisor.Spec
children = [
worker(Display, [])
]
opts = [strategy: :one_for_one, name: ElixirKoans.Supervisor]
Supervisor.start_link(children, opts)
end
end