--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/760faff5-eb2a-4da3-8b0b-eb4b7a855cfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Supervisor.start_child allows you to dynamically add workers to a supervisor.
However, you likely want to use simple_one_for_one as the strategy for the supervisor. Instead of giving it a list of workers when starting it, you give it a blueprint for each dynamic worker. You then call Supervisor.start_child and just pass a few arguments, which are appended to the ones in the blueprint already provided.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/ced357a6-19f1-4b70-b521-f561edeeda1c%40googlegroups.com.