Async::HTTPSourceAsyncHTTPServer

class Server

Nested

Definitions

def run

Signature

returns Async::Task

The task that is running the server.

Implementation

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