class Concurrent::RubyExchanger::Node

Public Class Methods

new(item) click to toggle source
Calls superclass method Concurrent::Synchronization::Object.new
# File lib/concurrent/exchanger.rb, line 149
def initialize(item)
  super()
  @Item = item
  @Latch = Concurrent::CountDownLatch.new
  self.value = nil
end

Public Instance Methods

item() click to toggle source
# File lib/concurrent/exchanger.rb, line 160
def item
  @Item
end
latch() click to toggle source
# File lib/concurrent/exchanger.rb, line 156
def latch
  @Latch
end