You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 rivejä
1.2 KiB

10 vuotta sitten
10 vuotta sitten
10 vuotta sitten
10 vuotta sitten
10 vuotta sitten
10 vuotta sitten
10 vuotta sitten
10 vuotta sitten
10 vuotta sitten
  1. {{=@@ @@=}}
  2. %%%-------------------------------------------------------------------
  3. %% @doc @@name@@ top level supervisor.
  4. %% @end
  5. %%%-------------------------------------------------------------------
  6. -module(@@name@@_sup).
  7. -behaviour(supervisor).
  8. %% API
  9. -export([start_link/0]).
  10. %% Supervisor callbacks
  11. -export([init/1]).
  12. -define(SERVER, ?MODULE).
  13. %%====================================================================
  14. %% API functions
  15. %%====================================================================
  16. start_link() ->
  17. supervisor:start_link({local, ?SERVER}, ?MODULE, []).
  18. %%====================================================================
  19. %% Supervisor callbacks
  20. %%====================================================================
  21. %% Child :: #{id => Id, start => {M, F, A}}
  22. %% Optional keys are restart, shutdown, type, modules.
  23. %% Before OTP 18 tuples must be used to specify a child. e.g.
  24. %% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
  25. init([]) ->
  26. {ok, {{one_for_all, 0, 1}, []}}.
  27. %%====================================================================
  28. %% Internal functions
  29. %%====================================================================