[#127] Nb remove auto shutdown hook

This commit is contained in:
Peter Taoussanis 2015-08-16 11:19:55 +07:00
parent e7f7b232a8
commit a991195549
1 changed files with 0 additions and 8 deletions

View File

@ -582,14 +582,6 @@
`(do (assert (<= 0 ~probability 1) "Probability: 0 <= p <= 1") `(do (assert (<= 0 ~probability 1) "Probability: 0 <= p <= 1")
(when (< (rand) ~probability) ~@body))) (when (< (rand) ~probability) ~@body)))
;;;; EXPERIMENTAL shutdown hook
;; Workaround for http://dev.clojure.org/jira/browse/CLJ-124
#+clj
(defonce ^:private shutdown-hook
(.addShutdownHook (Runtime/getRuntime)
(Thread. (fn [] (shutdown-agents)))))
;;;; Deprecated ;;;; Deprecated
(defn str-println [& xs] (enc/spaced-str xs)) (defn str-println [& xs] (enc/spaced-str xs))