Created
April 22, 2019 10:53
-
-
Save evilsneer/435e68bd15e03c6c60ce548999cf9f86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn exit-function | |
[] | |
(println "\n\nShutting down leveldb-store\n\n") | |
(release leveldb-store)) | |
(defn shutdown-hook | |
[fn] | |
(let [shutdown-thread (new Thread fn)] | |
(.. Runtime (getRuntime) (addShutdownHook shutdown-thread)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment