class Async::HTTP::Pool
def create_resource
def create_resource begin # This might fail, which is okay :) resource = @constructor.call rescue StandardError Async.logger.error "#{$!}: #{$!.backtrace}" return nil end @available[resource] = 1 return resource end