class Concurrent::Promises::Future

def reason(timeout = nil, timeout_value = nil)

Returns:
  • (Object, timeout_value) - the reason, or timeout_value on timeout, or nil on fulfillment.
def reason(timeout = nil, timeout_value = nil)
  if wait_until_resolved timeout
    internal_state.reason
  else
    timeout_value
  end
end