lib/garcon/task/delay.rb
# Return the value this object represents after applying the options
# specified by the `#set_deref_options` method.
#
# @param [Integer]
#   Timeout (nil) the maximum number of seconds to wait for the value to be
#   computed. When `nil` the caller will block indefinitely.
#
# @return [Object] self
#
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 .
def wait(timeout = nil)
      if @task_executor
        execute_task_once
        super(timeout)
      else
        value
      end
      self
    end
def wait ( timeout = nil ) if @task_executor execute_task_once super ( timeout ) else value end self 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 .
None
Object
timeout
<not_specific>
<not_specific>
Timeout (nil) the maximum number of seconds to wait for the value to be computed. When `nil` the caller will block indefinitely.
Timeout ( nil ) the maximum number of seconds to wait for the value to be computed . When ` nil ` the caller will block indefinitely .