class Bundler::Persistent::Net::HTTP::Persistent::TimedStackMulti

def try_create options = {} # :nodoc:

:nodoc:
def try_create options = {} # :nodoc:
  connection_args = options[:connection_args]
  if @created >= @max && @enqueued >= 1
    oldest, = @lru.first
    @lru.delete oldest
    @ques[oldest].pop
    @created -= 1
  end
  if @created < @max
    @created += 1
    lru_update connection_args
    return @create_block.call(connection_args)
  end
end