diff options
Diffstat (limited to 'priv')
-rw-r--r-- | priv/templates/sup.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/priv/templates/sup.erl b/priv/templates/sup.erl index a2e7209..0db7155 100644 --- a/priv/templates/sup.erl +++ b/priv/templates/sup.erl @@ -26,6 +26,9 @@ start_link() -> %% Supervisor callbacks %%==================================================================== +%% Child :: #{id => Id, start => {M, F, A}} +%% Optional keys are restart, shutdown, type, modules. +%% Before OTP 18 tuples must be used to specify a child. e.g. %% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} init([]) -> {ok, { {one_for_all, 0, 1}, []} }. |