       {:ok, [1, 2, 1]}
 
   """
-  @spec pipeline(pid, [command], Keyword.t) :: [Red.Protocol.redis_value]
+  @spec pipeline(GenServer.server, [command], Keyword.t) :: [Red.Protocol.redis_value]
   def pipeline(conn, commands, opts \\ []) do
     Connection.call(conn, {:pipeline, commands}, opts[:timeout] || @default_timeout)
   end

      :ok

  """
  @spec stop(pid) :: :ok
  def stop(conn) do
    Connection.cast(conn, :stop)
  end

      {:error, :closed}

  """
  @spec command(GenServer.server, command, Keyword.t) :: Red.Protocol.redis_value
  def command(conn, args, opts \\ []) do
    Connection.call(conn, {:command, args}, opts[:timeout] || @default_timeout)
  end
