lib/chore_runner/reporter_supervisor.ex
defmodule ChoreRunner.ReporterSupervisor do
use DynamicSupervisor
def start_link(opts) do
DynamicSupervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl true
def init(opts) do
DynamicSupervisor.init(strategy: :one_for_one, extra_arguments: opts)
end
end