class Async::HTTP::Pool

def wait_for_resource

def wait_for_resource
	# If we fail to create a resource (below), we will end up waiting for one to become resources.
	until resource = available_resource
		@available.wait
	end
	
	Async.logger.debug(self) {"Wait for resource #{resource}"}
	
	return resource
end