Back

thread-stopper (clj)

(source)

function

(thread-stopper) (thread-stopper thread)
Returns a function that takes one arg and uses that as an exception message to stop the given thread. Defaults to the current thread

Examples

cognitect/clojure-lab
;; @@
(require '[clojure.repl :refer :all])
;; @@

;; @@
(dir clojure.repl)
;; @@
;; ->
;;; apropos
;;; demunge
;;; dir
;;; dir-fn
;;; doc
;;; find-doc
;;; pst
;;; root-cause
;;; set-break-handler!
;;; source
;;; source-fn
;;; stack-element-str
;;; thread-stopper
;;; 
;; <-
;; =>
;;; {"type":"html","content":"<span class='clj-nil'>nil</span>","value":"nil"}
;; <=