25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

37 satır
1.1 KiB

10 yıl önce
10 yıl önce
10 yıl önce
10 yıl önce
10 yıl önce
10 yıl önce
10 yıl önce
10 yıl önce
10 yıl önce
10 yıl önce
  1. %%%-------------------------------------------------------------------
  2. %% @copyright {{copyright_holder}} ({{copyright_year}})
  3. %% @author {{author_name}} <{{author_email}}>
  4. %% @doc {{appid}} top level supervisor.
  5. %% @end
  6. %%%-------------------------------------------------------------------
  7. -module({{appid}}_sup).
  8. -behaviour(supervisor).
  9. %% API
  10. -export([start_link/0]).
  11. %% Supervisor callbacks
  12. -export([init/1]).
  13. -define(SERVER, ?MODULE).
  14. %%====================================================================
  15. %% API functions
  16. %%====================================================================
  17. start_link() ->
  18. supervisor:start_link({local, ?SERVER}, ?MODULE, []).
  19. %%====================================================================
  20. %% Supervisor callbacks
  21. %%====================================================================
  22. %% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
  23. init([]) ->
  24. {ok, { {one_for_all, 0, 1}, []} }.
  25. %%====================================================================
  26. %% Internal functions
  27. %%====================================================================