Current section

Files

Jump to
holidays lib supervisor.ex
Raw

lib/supervisor.ex

defmodule Holidays.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
@impl true
def init(:ok) do
children = [
{Holidays.Define, []}
]
Supervisor.init(children, strategy: :one_for_one)
end
end