Current section
Files
Jump to
Current section
Files
lib/ex_worker/supervisor.ex
defmodule ExWorker.Supervisor do
@moduledoc false
import Supervisor.Spec
@doc """
Starts the Supervision Tree
"""
def start(params \\ []) do
children = [
worker(ExWorker.Server, params, name: ExWorker.Server)
]
Supervisor.start_link(children, strategy: :one_for_one)
end
end