class Falcon::Command::Serve

def run(verbose)

def run(verbose)
	app, options = load_app(verbose)
	
	endpoint = Async::IO::Endpoint.parse(@options[:bind], reuse_port: true)
	
	Async.logger.info "Falcon taking flight! Binding to #{endpoint} [#{container_class} with concurrency: #{@options[:concurrency]}]"
	
	debug_trap = Async::IO::Trap.new(:USR1)
	
	container_class.new(concurrency: @options[:concurrency]) do |task|
		task.async do
			debug_trap.install!
			Async.logger.info "Send `kill -USR1 #{Process.pid}` for detailed status :)"
			
			debug_trap.trap do
				task.reactor.print_hierarchy($stderr)
			end
		end
		
		server = Falcon::Server.new(app, endpoint)
		
		server.run
		
		task.children.each(&:wait)
	end
end