class Async::HTTP::Pool

def wait_for_next_available

def wait_for_next_available
	until resource = next_available
		@waiting << Fiber.current
		Task.yield
	end
	
	return resource
end