Function: projectile--dir-files-alien-maybe-async

projectile--dir-files-alien-maybe-async is a byte-compiled function defined in projectile.el.

Signature

(projectile--dir-files-alien-maybe-async DIRECTORY &optional VCS SUBDIRS)

Documentation

Return alien-indexed files for DIRECTORY, without freezing when possible.

Dispatches to the responsive asynchronous indexer
(projectile--dir-files-alien-await) when projectile-async-indexing is
enabled and we're in an interactive context, and to the synchronous projectile-dir-files-alien otherwise (batch mode, keyboard macros, or when the option is disabled). Both return the same list.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--dir-files-alien-maybe-async (directory &optional vcs subdirs)
  "Return alien-indexed files for DIRECTORY, without freezing when possible.
Dispatches to the responsive asynchronous indexer
\(`projectile--dir-files-alien-await') when `projectile-async-indexing' is
enabled and we're in an interactive context, and to the synchronous
`projectile-dir-files-alien' otherwise (batch mode, keyboard macros, or
when the option is disabled).  Both return the same list."
  (if (and projectile-async-indexing
           (not noninteractive)
           (not executing-kbd-macro))
      (projectile--dir-files-alien-await directory vcs subdirs)
    (projectile-dir-files-alien directory vcs subdirs)))