A tiny library to manage a clojure application's jvm shutdown hooks. Inspired by duct
(require '[shutdown.core :as shutdown])
;; To add a 0-argument function to be executed before your app's runtime shuts
;; down (normally):
(shutdown/add-hook! ::descriptive-name #(println "It's about to go down!"))
;; In case you later change your mind:
(shutdown/remove-hook ::descriptive-name)
Copyright © 2017 ben lamothe
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.