Function: projectile-replace--async-p
projectile-replace--async-p is a byte-compiled function defined in
projectile.el.
Signature
(projectile-replace--async-p)
Documentation
Return non-nil when scanning should run asynchronously.
True when projectile-search-async is set and we are interactive;
batch (noninteractive) always scans synchronously so scripted runs stay
deterministic.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;; Asynchronous, cancelable scanning
;;
;; The synchronous `projectile-replace--gather' above stays the primitive that
;; batch runs and the tests drive. The async driver below reuses the very same
;; per-file `projectile-replace--scan-file', so the structs it produces are
;; identical to what `--gather' would produce over the same candidate list and
;; regexp - only the DELIVERY changes: files are scanned in timer-yielded
;; chunks, matches stream into the results buffer as they are found, and the
;; scan can be canceled. The `case-fold-search' that `--scan-file' reads is
;; re-established from the buffer's `projectile-replace--case-fold' inside each
;; chunk (the dynamic binding used by the sync path is gone once we run from a
;; timer).
(defun projectile-replace--async-p ()
"Return non-nil when scanning should run asynchronously.
True when `projectile-search-async' is set and we are interactive;
batch (`noninteractive') always scans synchronously so scripted runs stay
deterministic."
(and projectile-search-async (not noninteractive)))