DynamicSupervisor.Proxy (DynamicSupervisor Proxy v0.1.15) View Source
Link to this section Summary
Functions
Starts a module-based supervisor process with the given module
and init_arg
. Will wait a bit if the supervisor name is still registered on restarts. See: Supervisor restart backoff.
Link to this section Functions
Starts a module-based supervisor process with the given module
and init_arg
. Will wait a bit if the supervisor name is still registered on restarts. See: Supervisor restart backoff.
To start the supervisor, the init/1
callback will be invoked in the given
module
, with init_arg
as its argument. The init/1
callback must return
a supervisor specification which can be created with the help of the init/1
function.
The :name
option must be given in order to register a supervisor name.
Examples
use DynamicSupervisor.Proxy
def start_link(:ok), do: start_link(DynSup, :ok, name: DynSup)