class Async::HTTP::Pool
def release(resource)
def release(resource) if resource.reusable? Async.logger.debug(self) {"Reusing resource #{resource}"} @available[resource] -= 1 if task = @waiting.pop task.resume end else Async.logger.debug(self) {"Closing resource: #{resource}"} resource.close end end