Erlang: supervisor(3), adding a child process

前端 未结 2 853
时光说笑
时光说笑 2021-02-02 16:32

Where can I find example on how to add dynamic child processes to an existing supervisor (simple_one_for_one restart strategy) ?

2条回答
  •  故里飘歌
    2021-02-02 17:29

    In Supervisor Behaviour section of the OTP Design Principles part of the Erlang docs there is an example of how to use simple_one_for_one and dynamic children. I recommend the whole Design Principles part as it provides much insight into how OTP works.

提交回复
热议问题