Packages

Implementation of concurrent message passing system for parallell elevators.

Current section

Files

Jump to
elevator_project lib supervisors order_assigner_supervisor.ex
Raw

lib/supervisors/order_assigner_supervisor.ex

defmodule OrderAssigner.Supervisor do
@moduledoc false
use Supervisor
def start_link(_init_arg) do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
@impl true
def init(_init_arg) do
children = [
OrderAssigner,
Watchdog
]
Supervisor.init(children, strategy: :one_for_one)
end
end