Class: Concurrent::LockFreeStack::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, next_node) ⇒ Node

Returns a new instance of Node.



23
24
25
26
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 23

def initialize(value, next_node)
  @value     = value
  @next_node = next_node
end

Instance Attribute Details

#next_nodeNode (readonly)

Returns:



14
15
16
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 14

def next_node
  @next_node
end

#valueObject

Returns:

  • (Object)


17
18
19
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 17

def value
  @value
end
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy