class Concurrent::LockFreeStack

def push(value)

Returns:
  • (self) -

Parameters:
  • value (Object) --
def push(value)
  while true
    current_head = head
    return self if compare_and_set_head current_head, Node[value, current_head]
  end
end