Function: dape--kill-busy-wait
dape--kill-busy-wait is a natively compiled function defined in
dape.el.
Signature
(dape--kill-busy-wait)
Documentation
Kill all connections and wait until finished.
Source Code
;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
;;; Hooks
(defun dape--kill-busy-wait ()
"Kill all connections and wait until finished."
(dolist (conn (copy-sequence dape--connections))
(let (done)
(dape--with-request (dape-kill conn)
(setf done t))
;; Busy wait for response at least 2 seconds
(cl-loop with max-iterations = 20
for i from 1 to max-iterations
until done
do (accept-process-output nil 0.1)))))