Function: nrepl--dispatch-response
nrepl--dispatch-response is a byte-compiled function defined in
nrepl-client.el.
Signature
(nrepl--dispatch-response RESPONSE)
Documentation
Dispatch the RESPONSE to associated callback.
First we check the callbacks of pending requests. If no callback was found, we check the completed requests, since responses could be received even for older requests with "done" status.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/nrepl-client.el
(defun nrepl--dispatch-response (response)
"Dispatch the RESPONSE to associated callback.
First we check the callbacks of pending requests. If no callback was found,
we check the completed requests, since responses could be received even for
older requests with \"done\" status."
(nrepl-dbind-response response (id)
(nrepl-log-message response 'response)
(let ((callback (or (gethash id nrepl-pending-requests)
(gethash id nrepl-completed-requests))))
(if callback
(funcall callback response)
(error "[nREPL] No response handler with id %s found for %s" id (buffer-name))))))