Quellcode durchsuchen

Merge pull request #1789 from CrowdHailer/patch-1

Use maps for child spec example
pull/1794/head
Fred Hebert vor 7 Jahren
committed von GitHub
Ursprung
Commit
5170556eae
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. +3
    -0
      priv/templates/sup.erl

+ 3
- 0
priv/templates/sup.erl Datei anzeigen

@ -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}, []} }.

Laden…
Abbrechen
Speichern