Method: Concurrent::Futures::Lazy#value
- Defined in:
- lib/concurrent/futures.rb
#value ⇒ Object
100 101 102 103 104 105 106 107 108 |
# File 'lib/concurrent/futures.rb', line 100 def value @lock.synchronize do if @block @value = Thunk.new Thread.new( &block ) @block = nil end @value end end |