Method: Concurrent::Futures::Lazy#inspect

Defined in:
lib/concurrent/futures.rb

#inspectObject



112
113
114
115
116
117
118
119
120
# File 'lib/concurrent/futures.rb', line 112

def inspect
  @lock.synchronize do
    if @block
      "#<Lazy pending #{ @block.inspect }>"
    else
      "#<Lazy requested #{ @value.inspect }>"
    end
  end
end