class Async::HTTP::Server

def run

@returns [Async::Task] The task that is running the server.
def run
	Async do |task|
		@endpoint.accept(&self.method(:accept))
		
		# Wait for all children to finish:
		task.children.each(&:wait)
	end
end