Packages

Barenboim helps you with data streaming dependencies in concurrent flows

Current section

Files

Jump to
barenboim lib barenboim workers supervisor.ex
Raw

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