Method: Concurrent::Futures::Promise#value

Defined in:
lib/concurrent/futures.rb

#valueObject



80
81
82
83
84
85
# File 'lib/concurrent/futures.rb', line 80

def value
  @lock.synchronize do
    @ready.wait @lock until defined? @value
    @value
  end
end