Tell a supervisor to stop when all children are gone

Roger Lipscombe roger@REDACTED
Wed Mar 23 09:16:16 CET 2022

Use 'auto_shutdown' and mark all of the children as 'significant'; see
Requires OTP-24.something, iirc.

On Wed, 23 Mar 2022 at 08:00, Frank Muller <frank.muller.erl@REDACTED> wrote:
> Hi guys,
> How should I configure my supervisor to automatically stop it when its children are stopped?
> I’m using rest_for_one strategy.
> Thanks.
> /Frank

More information about the erlang-questions mailing list