Tarearbol.DynamicManager.children_specs

You're seeing just the callback children_specs, go back to Tarearbol.DynamicManager module for more information.
Link to this callback

children_specs()

View Source (since 0.9.0)

Specs

children_specs() :: %{required(id()) => Enum.t()}

This function is called to retrieve the map of children with name as key and a workers as the value.

The value must be an enumerable with keys among:

  • :payload passed as second argument to perform/2, default nil
  • :timeout time between iterations of perform/2, default 1 second
  • :lull threshold to notify latency in performing, default 1.1 (the threshold is :lull times the :timeout)

This function should not care about anything save for producing side effects.

It will be backed by DynamicSupervisor. The value it returns will be put into the state under children key.