Function: consult--slow-operation

consult--slow-operation is a macro defined in consult.el.

Signature

(consult--slow-operation MESSAGE &rest BODY)

Documentation

Show delayed MESSAGE if BODY takes too long.

Also temporarily increase the GC limit via consult--with-increased-gc.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
(defmacro consult--slow-operation (message &rest body)
  "Show delayed MESSAGE if BODY takes too long.
Also temporarily increase the GC limit via `consult--with-increased-gc'."
  (declare (indent 1) (debug t))
  `(with-delayed-message (1 ,message)
     (consult--with-increased-gc ,@body)))