       :ok
 
   """
-  @spec stop(GenServer.server(), timeout) :: :ok
+  @spec stop(connection(), timeout()) :: :ok
   def stop(conn, timeout \\ :infinity) do
     Redix.Connection.stop(conn, timeout)
   end

  # function in this module goes through Redix.Connection.pipeline/3 one way or
  # another.

  @type command :: [binary]

  @default_timeout 5000


      :closed

  """
  @spec pipeline(connection(), [command()], keyword()) ::
          {:ok, [Redix.Protocol.redis_value()]} | {:error, atom() | Redix.Error.t()}
  def pipeline(conn, commands, opts \\ []) do
    assert_valid_pipeline_commands(commands)
    Redix.Connection.pipeline(conn, commands, opts[:timeout] || @default_timeout)
