Function: spinner-stop

spinner-stop is a byte-compiled function defined in spinner.el.

Signature

(spinner-stop &optional SPINNER)

Documentation

Stop SPINNER, defaulting to the current buffer's spinner.

It is always safe to call this function, even if there is no active spinner.

Source Code

;; Defined in ~/.emacs.d/elpa/spinner-1.7.4/spinner.el
(defun spinner-stop (&optional spinner)
  "Stop SPINNER, defaulting to the current buffer's spinner.
It is always safe to call this function, even if there is no
active spinner."
  (let ((spinner (or spinner spinner-current)))
    (when (spinner-p spinner)
      (let ((timer (spinner--timer spinner)))
        (when (timerp timer)
          (cancel-timer timer)))
      (setf (spinner--active-p spinner) nil)
      (force-mode-line-update))))