Current section
Files
Jump to
Current section
Files
lib/supervisor.ex
defmodule Life.Supervisor do
use Supervisor
def start_link do
IO.puts("Starting the supervisor..")
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
Life.GameServer
]
Supervisor.init(children, strategy: :one_for_one)
end
end