Function: nrepl-send-sync-request
nrepl-send-sync-request is a byte-compiled function defined in
nrepl-client.el.
This function is obsolete since 2.0.0; use nrepl-sync-request
instead.
Signature
(nrepl-send-sync-request REQUEST CONNECTION &optional ABORT-ON-INPUT TOOLING 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. 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 TOOLING, use the tooling session rather than the standard session.
If CALLBACK is non-nil, it will additionally be called on all received
messages. This shouldn't be used this for any control logic - use the
asynchronous nrepl-send-request directly for that. CALLBACK here should
be used to react to some intermediate events in an otherwise synchronous
command and e.g. notify the user about them.
This positional form is kept for backward compatibility; new code should
prefer the keyword-argument nrepl-sync-request.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-client.el
(defun nrepl-send-sync-request (request connection &optional abort-on-input
tooling 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.
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 TOOLING, use the tooling session rather than the standard session.
If CALLBACK is non-nil, it will additionally be called on all received
messages. This shouldn't be used this for any control logic - use the
asynchronous `nrepl-send-request' directly for that. CALLBACK here should
be used to react to some intermediate events in an otherwise synchronous
command and e.g. notify the user about them.
This positional form is kept for backward compatibility; new code should
prefer the keyword-argument `nrepl-sync-request'."
(nrepl-sync-request request connection
:abort-on-input abort-on-input
:tooling tooling
:callback callback))