Optional ReadonlynameOptionalsupervisorParent consulted when this supervisor gives up. May be assigned after construction.
Live children in start order. Terminated children are removed automatically.
Settles when the supervisor terminates: resolves on stop/kill, rejects when it gave up.
The error that made the supervisor give up, if any.
Total number of child restarts performed.
The A.Supervisor protocol: called by a child whose handler threw and whose local policy escalated. Decisions are serialised so concurrent failures cannot interleave restarts.
Kills every child immediately, then terminates (even if a child's kill() rejects).
Restarts every child in start order and resets the restart window.
Stops children one at a time in reverse start order, then terminates.
A child whose stop() rejects does not prevent the others from stopping nor the
supervisor from terminating.
Adopts an existing child, becoming its supervisor.
Supervises a group of children (actors or nested supervisors), deciding what happens when one of them fails.
Children stay in place across restarts — their mailboxes and the references others hold remain valid — because Actor.restart re-initialises state without replacing the actor.
Restart intensity is bounded: more than
maxRestartsrestarts withinwindowmilliseconds makes the supervisor give up. It then escalates to its own supervisor if it has one; otherwise it kills the remaining children and fails with a SupervisorError.