Tell a supervisor to stop when all children are gone
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.
More information about the erlang-questions