You can create supervised children in a Supervisor with worker/3 and supervisor/3.
While worker/3 is used to start generic processes, supervisor/3 is specifically for processes that are also Supervisors. Like this you can have Supervisors that are supervised by other Supervisors, eventually creating the Supervision tree.
The module you’ve posted here is not a Supervisor, so it should be started with worker/3.






















