Drone.Supervisor (ex_drone v0.1.0)

View Source

Dynamic supervisor for drone vehicle processes.

Each drone is started as a child Drone.Vehicle process under this supervisor. Processes are looked up by name via the Drone.Vehicle.Registry.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()

start_vehicle(opts)

@spec start_vehicle(keyword()) :: Supervisor.on_start_child()

stop_vehicle(name)

@spec stop_vehicle(atom()) :: :ok | {:error, :not_found}