aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex
blob: f9b569f059470ed7eb60c0d2c1424b8bd4d00007 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
defmodule ElixirHelloWorld.Supervisor do
  use Supervisor.Behaviour

  def start_link do
    :supervisor.start_link(__MODULE__, [])
  end

  def init([]) do
    children = []
    supervise children, strategy: :one_for_one
  end
end