Is possible call a function to all workers in a Supervisor?

Hello,

I want to call a function to all workers (simple_one_for_one) in a supervisor, is possible to do this? What is the easiest way to do it?

Greetings!

Supervisor has a which_children method

https://hexdocs.pm/elixir/Supervisor.html#which_children/1

1 Like

Perfect! Thanks :smiley: