lib/garcon/task/delay.rb
# Return the value this object represents after applying the options
# specified by the `#set_deref_options` method. If the delayed operation
# raised an exception, this method will raise that exception (even when)
# the operation has already been executed).
#
# @param [Numeric]
#   Timeout the maximum number of seconds to wait.
#
# @raise [Exception] when `#rejected?` raises `#reason`.
#
# @return [Object]
#   The current value of the object.
#
Return the value this object represents after applying the options
specified by the `#set_deref_options` method. If the delayed operation
raised an exception, this method will raise that exception (even when)
the operation has already been executed).
Return the value this object represents after applying the options specified by the ` #set_deref_options ` method . If the delayed operation raised an exception this method will raise that exception ( even when ) the operation has already been executed ) .
def value!(timeout = nil)
      if @task_executor
        super
      else
        result = value
        raise @reason if @reason
        result
      end
    end
def value! ( timeout = nil ) if @task_executor super else result = value raise @reason if @reason result end end
Return the value this object represents after applying the options
specified by the `#set_deref_options` method.
Return the value this object represents after applying the options specified by the ` #set_deref_options ` method .
The current value of the object.
The current value of the object .
Object
[Exception] when `#rejected?` raises `#reason`.
[ Exception ] when ` #rejected? ` raises ` #reason ` .
timeout
<not_specific>
<not_specific>
Timeout the maximum number of seconds to wait.
Timeout the maximum number of seconds to wait .