Method: Ccrpc::Promise#inspect

Defined in:
lib/ccrpc/lazy.rb

#inspectObject

:nodoc:



93
94
95
96
97
98
99
100
101
# File 'lib/ccrpc/lazy.rb', line 93

def inspect #:nodoc:
  @mutex.synchronize do
    if @computation
      "#<#{ __class__ } computation=#{ @computation.inspect }>"
    else
      @result.inspect
    end
  end
end