Closed Psli closed 5 years ago
Elixir v1.5 allows child specifications, which specify how a child process is supervised, to be defined in modules.
children = [ MyApp.Repo, MyApp.Endpoint ] Supervisor.start_link(children, strategy: :one_for_one)
Elixir v1.5 allows child specifications, which specify how a child process is supervised, to be defined in modules.