class RedisClient::RubyConnection

def read(timeout = nil)

Experimental RBS support (using type sampling data from the type_fusion project).

def read: (?nil timeout) -> untyped

This signature was generated using 1 sample from 1 application.

def read(timeout = nil)
  if timeout.nil?
    RESP3.load(@io)
  else
    @io.with_timeout(timeout) { RESP3.load(@io) }
  end
rescue RedisClient::RESP3::UnknownType => error
  raise RedisClient::ProtocolError, error.message
rescue SystemCallError, IOError, OpenSSL::SSL::SSLError => error
  raise ConnectionError, error.message
end