Function: dape--call-with-debounce
dape--call-with-debounce is a natively compiled function defined in
dape.el.
Signature
(dape--call-with-debounce TIMER BACKOFF FN)
Documentation
Call FN with a debounce of BACKOFF seconds.
This function utilizes TIMER to store state. It cancels the TIMER and schedules FN to run after current time + BACKOFF seconds. If BACKOFF is non-zero, FN will be evaluated within timer context.
Source Code
;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape--call-with-debounce (timer backoff fn)
"Call FN with a debounce of BACKOFF seconds.
This function utilizes TIMER to store state. It cancels the TIMER
and schedules FN to run after current time + BACKOFF seconds.
If BACKOFF is non-zero, FN will be evaluated within timer context."
(cond ((zerop backoff)
(cancel-timer timer)
(funcall fn))
(t
(cancel-timer timer)
(timer-set-time timer (timer-relative-time nil backoff))
(timer-set-function timer fn)
(timer-activate timer))))