Function: cider-eldoc-info-async
cider-eldoc-info-async is a byte-compiled function defined in
cider-eldoc.el.
Signature
(cider-eldoc-info-async THING K)
Documentation
Asynchronously compute the eldoc info plist for THING and call K with it.
K receives the plist, or nil when there's nothing to show. It may be called synchronously (for local/cached cases) or later, once the nREPL response arrives, so this never blocks the eldoc hot path.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-eldoc.el
(defun cider-eldoc-info-async (thing k)
"Asynchronously compute the eldoc info plist for THING and call K with it.
K receives the plist, or nil when there's nothing to show. It may be called
synchronously (for local/cached cases) or later, once the nREPL response
arrives, so this never blocks the eldoc hot path."
(let ((thing (cider-eldoc--convert-ns-keywords thing)))
(if (not (cider-eldoc--lookup-applicable-p thing))
(funcall k nil)
(if-let* ((local (cider-eldoc--local-info thing)))
(funcall k local)
(cider-eldoc--request-async
thing
(lambda (eldoc-info)
(funcall k (when eldoc-info
(cider-eldoc--build-info thing eldoc-info)))))))))