class Concurrent::Tuple

def initialize(size)

Parameters:
  • size (Integer) -- the number of elements in the tuple
def initialize(size)
  @size = size
  @tuple = tuple = ::Array.new(size)
  i = 0
  while i < size
    tuple[i] = Concurrent::AtomicReference.new
    i += 1
  end
end