Current section
Files
Jump to
Current section
Files
lib/barenboim/workers/supervisor.ex
defmodule Barenboim.Workers.Supervisor do
@moduledoc false
use Supervisor
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg)
end
def init(_arg) do
children = [
supervisor(Task.Supervisor, [[name: Barenboim.Workers.WorkerTaskSupervisor, restart: :transient]])
]
supervise(children, strategy: :one_for_one)
end
end