Function: cider-nrepl-send-sync-request

cider-nrepl-send-sync-request is a byte-compiled function defined in cider-client.el.

Signature

(cider-nrepl-send-sync-request REQUEST &optional CONNECTION ABORT-ON-INPUT CALLBACK)

Documentation

Send REQUEST to the nREPL server synchronously using CONNECTION.

Hold till final "done" message has arrived and join all response messages of the same "op" that came along and return the accumulated response. If ABORT-ON-INPUT is non-nil, the function will return nil at the first sign of user input, so as not to hang the interface. if CALLBACK is non-nil, it will additionally be called on all received messages.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-client.el
(defun cider-nrepl-send-sync-request (request &optional connection
                                              abort-on-input callback)
  "Send REQUEST to the nREPL server synchronously using CONNECTION.
Hold till final \"done\" message has arrived and join all response messages
of the same \"op\" that came along and return the accumulated response.
If ABORT-ON-INPUT is non-nil, the function will return nil
at the first sign of user input, so as not to hang the
interface.
if CALLBACK is non-nil, it will additionally be called on all received messages."
  (nrepl-send-sync-request request
                           (or connection (cider-current-repl 'infer 'ensure))
                           abort-on-input
                           nil
                           callback))