Last active
January 16, 2019 09:11
-
-
Save firthh/f60d407fb6dd6c9c014e189367bdec24 to your computer and use it in GitHub Desktop.
Shutdown
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 -main [& args] | |
(.addShutdownHook (Runtime/getRuntime) | |
(Thread. (fn [] | |
(println "Shutting down application")))) | |
(while true | |
(Thread/sleep 500))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment