Function: cider--emit-orphaned-output

cider--emit-orphaned-output is a byte-compiled function defined in cider-eval.el.

Signature

(cider--emit-orphaned-output RESPONSE)

Documentation

Emit RESPONSE's stdout/stderr when no handler is registered for its id.

Return non-nil when RESPONSE carried output. Installed as nrepl-orphaned-output-function, so prints from a background process (e.g. a core.async go-loop still using a completed eval's id) reach the REPL instead of being dropped with a "No response handler" warning.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-eval.el
(defun cider--emit-orphaned-output (response)
  "Emit RESPONSE's stdout/stderr when no handler is registered for its id.
Return non-nil when RESPONSE carried output.  Installed as
`nrepl-orphaned-output-function', so prints from a background process (e.g. a
core.async go-loop still using a completed eval's id) reach the REPL instead
of being dropped with a \"No response handler\" warning."
  (nrepl-dbind-response response (out err)
    (when out (cider-emit-interactive-eval-output out))
    (when err (cider-emit-interactive-eval-err-output err))
    (or out err)))