Function: eca-workspaces--ensure-ticker
eca-workspaces--ensure-ticker is a natively compiled function defined
in eca-workspaces.el.
Signature
(eca-workspaces--ensure-ticker)
Documentation
Start or stop the 1s ticker based on visibility and running chats.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-workspaces.el
(defun eca-workspaces--ensure-ticker ()
"Start or stop the 1s ticker based on visibility and running chats."
(let ((buffer (get-buffer eca-workspaces-buffer-name)))
(if (and buffer
(buffer-live-p buffer)
(get-buffer-window buffer t)
(eca-workspaces--any-chat-running-p))
(unless (timerp eca-workspaces--ticker-timer)
(setq eca-workspaces--ticker-timer
(run-with-timer 1 1 #'eca-workspaces--tick)))
(eca-workspaces--stop-ticker))))