Function: cider-clojuredocs--lookup-async

cider-clojuredocs--lookup-async is a byte-compiled function defined in cider-clojuredocs.el.

Signature

(cider-clojuredocs--lookup-async NS SYM CALLBACK)

Documentation

Asynchronously perform a "clojuredocs-lookup" for SYM in NS.

CALLBACK is invoked with the resulting dict, or nil when there is none (e.g. the symbol has no ClojureDocs entry, or the middleware is unavailable).

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-clojuredocs.el
(defun cider-clojuredocs--lookup-async (ns sym callback)
  "Asynchronously perform a \"clojuredocs-lookup\" for SYM in NS.
CALLBACK is invoked with the resulting dict, or nil when there is none (e.g.
the symbol has no ClojureDocs entry, or the middleware is unavailable)."
  (let (result)
    (cider-nrepl-send-request
     `("op" "cider/clojuredocs-lookup" "ns" ,ns "sym" ,sym)
     (lambda (response)
       (nrepl-dbind-response response (clojuredocs status id)
         (when clojuredocs
           (setq result clojuredocs))
         (when (member "done" status)
           (nrepl--mark-id-completed id)
           (funcall callback result)))))))