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

      {:error, :closed}

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

      {:ok, [1, 2, 1]}

  """
  @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
