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.

35 satır
1020 B

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