Module supervisor
Data Types
child_spec()
child_spec() = #{id => any(), start => {module(), atom(), [any()]}, restart => restart(), shutdown => shutdown(), type => child_type(), modules => [module()] | dynamic} | {Id::any(), StartFunc::{module(), atom(), [any()]}, Restart::restart(), Shutdown::shutdown(), Type::child_type(), Modules::[module()] | dynamic}
child_type()
child_type() = worker | supervisor
restart()
restart() = permanent | transient | temporary
shutdown()
shutdown() = brutal_kill | timeout()
strategy()
strategy() = one_for_all | one_for_one
sup_flags()
sup_flags() = #{strategy => strategy(), intensity => non_neg_integer(), period => pos_integer()} | {RestartStrategy::strategy(), Intensity::non_neg_integer(), Period::pos_integer()}
Function Index
handle_call/3 | |
handle_cast/2 | |
handle_info/2 | |
init/1 | |
start_child/2 | |
start_link/2 | |
start_link/3 |
Function Details
handle_call/3
handle_call(X1, From, State) -> any()
handle_cast/2
handle_cast(Msg, State) -> any()
handle_info/2
handle_info(Msg, State) -> any()
init/1
init(X1) -> any()
start_child/2
start_child(Supervisor, ChildSpec) -> any()
start_link/2
start_link(Module, Args) -> any()
start_link/3
start_link(SupName, Module, Args) -> any()