(create &
{:keys [processes rules linker default-rule name system-exit]
:or {processes #{}
rules {}
default-rule (rule-create)
linker gen.linker-storage/*linker*
system-exit false}
:as args})
PROCESSES is a set of processes, which are supervised. RULES are process->rule map. Rules are created with gen.supervisor/rule-create. LINKER is linker storage for this supervisor. Linker storage is a place, where linker information is stored. It is not linked without running linker. gen.linker-storage/linker by default. If SYSTEM-EXIT is true, program will terminate with (System/exit 0) after supervisor is terminated. Should be used on the main supervisor.
PROCESSES is a set of processes, which are supervised. RULES are process->rule map. Rules are created with gen.supervisor/rule-create. LINKER is linker storage for this supervisor. Linker storage is a place, where linker information is stored. It is not linked without running linker. gen.linker-storage/*linker* by default. If SYSTEM-EXIT is true, program will terminate with (System/exit 0) after supervisor is terminated. Should be used on the main supervisor.
(process-add supervisor process & [rule])
(process-remove supervisor process)
(processes supervisor)
(rule-create &
{:keys [important? restarts-everyone? max-restarts in-milliseconds
args no-initial-flush]
:or {important? false
restarts-everyone? false
max-restarts 0
no-initial-flush false}})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close