/
mainstream
/
hw10
Обзор
Документация
Войти
/
mainstream
/
hw10
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
code_lock/src/code_lock_sup.erl
35 строк
1 KB
iv323s29
Add
15 янв 2026, 18:30
15 янв 2026, 18:30
dc76667
Код
Авторство
О чём код?
%%%------------------------------------------------------------------- %% @doc code_lock top level supervisor. %% @end %%%------------------------------------------------------------------- -module(code_lock_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). %% sup_flags() = #{strategy => strategy(), % optional %% intensity => non_neg_integer(), % optional %% period => pos_integer()} % optional %% child_spec() = #{id => child_id(), % mandatory %% start => mfargs(), % mandatory %% restart => restart(), % optional %% shutdown => shutdown(), % optional %% type => worker(), % optional %% modules => modules()} % optional init([]) -> SupFlags = #{strategy => one_for_all, intensity => 0, period => 1}, ChildSpecs = [], {ok, {SupFlags, ChildSpecs}}. %% internal functions