How to supervise n children started at runtime?

Forgive me if I am thinking about this the wrong way. I would like to start some child processes at runtime (this part is no problem), but I would like to add them to a supervisor. Is it possible to have a supervisor of processes a, b, c and then add d at runtime?

Thank you for tips!

You may be looking for DynamicSupervisor. It’s made to have children added instead of declaring them all up front.

3 Likes

Ah, of course. Thank you! I am wondering if the search form on hex.pm should return the built-in libraries like this.