how does it work

Dmytro Lytovchenko dmytro.lytovchenko@REDACTED
Fri Jan 17 14:23:11 CET 2020


It starts nothing just empty supervisor.
You can add more by using `supervisor:start_child(SupName, Spec)`
https://erlang.org/doc/man/supervisor.html#start_child-2

On Fri, 17 Jan 2020 at 13:50, Dietmar Schaefer <dietmar-s@REDACTED> wrote:

> I found this supervisor code:
>
>
> -define(SERVER,?MODULE).
>
>
>
> start_link()->
>
> supervisor:start_link({local,?SERVER},?MODULE,[]).
>
>
>
> init([])->
>
>     {ok, {{one_for_all, 0, 1},[]}}.
>
> How can it work without any specification about what to start?
>
>
> regards
>
> Dietmar
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200117/0abb2dc8/attachment.htm>


More information about the erlang-questions mailing list