class Redis::Future

def ==(_other)

def ==(_other)
  message = +"The methods == and != are deprecated for Redis::Future and will be removed in 4.2.0"
  message << " - You probably meant to call .value == or .value !="
  message << " (#{::Kernel.caller(1, 1).first})\n"
  ::Kernel.warn(message)
  super
end

def _command

def _command
  @command
end

def _set(object)

def _set(object)
  @object = @transformation ? @transformation.call(object) : object
  value
end

def class

def class
  Future
end

def initialize(command, transformation, timeout)

def initialize(command, transformation, timeout)
  @command = command
  @transformation = transformation
  @timeout = timeout
  @object = FutureNotReady
end

def inspect

def inspect
  "<Redis::Future #{@command.inspect}>"
end

def is_a?(other)

def is_a?(other)
  self.class.ancestors.include?(other)
end

def value

def value
  ::Kernel.raise(@object) if @object.is_a?(::RuntimeError)
  @object
end