std.supervisor

← Stdlib Reference · Language Guide · Detailed reference

Erlang-inspired actor supervision strategies.

Build flag: Available only when Eta is built with -DETA_BUILD_NNG=ON.

(import std.supervisor)
SymbolDescription
(one-for-one specs)Restart only the failed child.
(one-for-all specs)Restart every child when any one fails.

Each spec is a list (id start-thunk . opts) describing how to (re)start a child.


Source: stdlib/std/supervisor.eta