Behaviours: gen_server.
This module defines the supervisor2 behaviour.
Required callback functions: init/1.
call() = which_children | count_children | {term(), term()}
XXX: refine
child() = undefined | pid()
child_id() = term()
child_spec() = {Id::child_id(), StartFunc::mfargs(), Restart::restart(), Shutdown::shutdown(), Type::worker(), Modules::modules()}
delay() = non_neg_integer()
init_sup_name() = sup_name() | self
mfargs() = {M::module(), F::atom(), A::[term()] | undefined}
modules() = [module()] | dynamic
restart() = permanent | transient | temporary | intrinsic | {permanent, delay()} | {transient, delay()} | {intrinsic, delay()}
shutdown() = brutal_kill | timeout()
startchild_err() = already_present | {already_started, Child::child()} | term()
startchild_ret() = {ok, Child::child()} | {ok, Child::child(), Info::term()} | {error, startchild_err()}
startlink_err() = {already_started, pid()} | {shutdown, term()} | term()
startlink_ret() = {ok, pid()} | ignore | {error, startlink_err()}
state() = #state{}
stop_rsn() = {shutdown, term()} | {bad_return, {module(), init, term()}} | {bad_start_spec, term()} | {start_spec, term()} | {supervisor_data, term()}
strategy() = one_for_all | one_for_one | rest_for_one | simple_one_for_one
sup_name() = {local, Name::atom()} | {global, Name::atom()}
sup_ref() = (Name::atom()) | {Name::atom(), Node::node()} | {global, Name::atom()} | pid()
worker() = worker | supervisor
check_childspecs(ChildSpecs) -> Result
count_children(SupRef) -> PropListOfCounts
delete_child(SupRef, Id) -> Result
find_child(Supervisor, Name) -> [pid()]
handle_cast(X1::{try_again_restart, child_id() | pid(), term()}, State::state()) -> {noreply, state()} | {stop, shutdown, state()}
init(X1::{init_sup_name(), module(), [term()]}) -> {ok, state()} | ignore | {stop, stop_rsn()}
restart_child(SupRef, Id) -> Result
start_child(SupRef, ChildSpec) -> startchild_ret()
start_link(Module, Args) -> startlink_ret()
start_link(SupName, Module, Args) -> startlink_ret()
terminate(Reason::term(), State::state()) -> ok
terminate_child(SupRef, Id) -> Result
try_again_restart(SupRef, Child, Reason) -> ok
which_children(SupRef) -> [{Id, Child, Type, Modules}]
Generated by EDoc, Aug 22 2021, 17:07:53.