Packages

A simple Push programming language interpreter implemented in Elixir.

Current section

Files

Jump to
elixush lib supervisor.ex
Raw

lib/supervisor.ex

defmodule Elixush.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok)
end
def init(:ok) do
children = [
worker(Elixush.Globals.Agent, [Elixush.Globals.Agent]),
worker(Elixush.Server, [])
]
supervise(children, strategy: :one_for_all)
end
end