Function: thread-list--get-status
thread-list--get-status is a byte-compiled function defined in
thread.el.gz.
Signature
(thread-list--get-status THREAD)
Documentation
Describe the status of THREAD.
Return a list of two strings, one describing THREAD's status, the other describing THREAD's blocker, if any.
Source Code
;; Defined in /usr/src/emacs/lisp/thread.el.gz
(defun thread-list--get-status (thread)
"Describe the status of THREAD.
Return a list of two strings, one describing THREAD's status, the
other describing THREAD's blocker, if any."
(cond
((not (thread-live-p thread)) '("Finished" ""))
((eq thread (current-thread)) '("Running" ""))
(t (if-let* ((blocker (thread--blocker thread)))
`("Blocked" ,(prin1-to-string blocker))
'("Yielded" "")))))