erlang网络库
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20 行
378 B

4 年前
5 年前
5 年前
5 年前
5 年前
  1. -module(eNet_sup).
  2. -behaviour(supervisor).
  3. -export([
  4. start_link/0
  5. ]).
  6. -export([
  7. init/1
  8. ]).
  9. -spec(start_link() -> {ok, pid()} | {error, term()}).
  10. start_link() ->
  11. supervisor:start_link({local, ?MODULE}, ?MODULE, undefined).
  12. init(_Args) ->
  13. SupFlag = #{strategy => one_for_one, intensity => 100, period => 3600},
  14. ChildSpecs = [],
  15. {ok, {SupFlag, ChildSpecs}}.