class Concurrent::RubyExchanger::Node

Public Class Methods

new(item) click to toggle source
# File lib/concurrent-ruby/concurrent/exchanger.rb, line 142
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-ruby/concurrent/exchanger.rb, line 153
def item
  @Item
end
latch() click to toggle source
# File lib/concurrent-ruby/concurrent/exchanger.rb, line 149
def latch
  @Latch
end