Why Supervisor.start_child dont work
问题 I'm beginner in Elixir. I have one application that initiate one custom supervisor in application.ex. Code: defmodule MyApp do use Application def start(_type, _args) do import Supervisor.Spec children = [ supervisor(MyApp.Web.Endpoint, []), supervisor(MyApp.Repo, []), #my notifier MyApp.MyNotifier.Supervisor ] opts = [strategy: :one_for_one, name: MyApp.Supervisor] Supervisor.start_link(children, opts) end end And the code of supervisor is something like this: defmodule MyApp.MyNotifier