class Async::HTTP::Server
def run
def run Async do |task| @endpoint.accept(&self.method(:accept)) # Wait for all children to finish: task.children.each(&:wait) end end
def run Async do |task| @endpoint.accept(&self.method(:accept)) # Wait for all children to finish: task.children.each(&:wait) end end