Current section

Files

Jump to
exmobiledevice lib ex_mobile_device services supervisor.ex
Raw

lib/ex_mobile_device/services/supervisor.ex

defmodule ExMobileDevice.Services.Supervisor do
@moduledoc false
use DynamicSupervisor
@spec start_link(any) :: Supervisor.on_start()
def start_link(args) do
DynamicSupervisor.start_link(__MODULE__, args, name: __MODULE__)
end
@spec start_child({module(), any()}) :: DynamicSupervisor.on_start_child()
def start_child(child_spec) do
DynamicSupervisor.start_child(__MODULE__, child_spec)
end
@impl true
def init(_init_arg) do
DynamicSupervisor.init(strategy: :one_for_one)
end
end