项目作者: zonotope

项目描述 :
Manage a clojure application's shutdown hooks.
高级语言: Clojure
项目地址: git://github.com/zonotope/shutdown.git
创建时间: 2017-07-16T17:32:04Z
项目社区:https://github.com/zonotope/shutdown

开源协议:Eclipse Public License 1.0

下载


shutdown

A tiny library to manage a clojure application’s
jvm shutdown hooks. Inspired by duct

Usage

  1. (require '[shutdown.core :as shutdown])
  2. ;; To add a 0-argument function to be executed before your app's runtime shuts
  3. ;; down (normally):
  4. (shutdown/add-hook! ::descriptive-name #(println "It's about to go down!"))
  5. ;; In case you later change your mind:
  6. (shutdown/remove-hook ::descriptive-name)

License

Copyright © 2017 ben lamothe

Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.