Consider the following module-based Supervisor:
defmodule MyApp.Supervisor do
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
@impl true
def init(_init_arg) do
Supervisor.init([Worker], strategy: :rest_for_one)
end
end
After the Supervisor has been started, if another process is started using :
Supervisor.start_child(MyApp.Supervisor, SomeOtherWorker)
will it be included in the defined :strategy
?
The separately started process appears to be included in the defined
:strategy
, when tested locally: