module Async::Container::Supervisor::Environment

def container_options

Options to use when creating the container.
def container_options
	{restart: true, count: 1, health_check_timeout: 30}
end

def endpoint

@returns [::IO::Endpoint::Generic]
The endpoint the supervisor will bind to.
def endpoint
	::IO::Endpoint.unix(ipc_path)
end

def ipc_path

@returns [String]
The IPC path to use for communication with the supervisor.
def ipc_path
	::File.expand_path("supervisor.ipc", root)
end

def make_server(endpoint)

def make_server(endpoint)
	Server.new(endpoint: endpoint, monitors: self.monitors)
end

def monitors

def monitors
	[]
end

def name

@returns [String]
The name of the supervisor
def name
	"supervisor"
end

def service_class

@returns [Class]
The service class to use for the supervisor.
def service_class
	Supervisor::Service
end