Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Monitoring update of config file
tree: c08855fd7c

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/hozumi
test
.gitignore
README.md
epl-v10.html
project.clj

README.md

clj-polling-config

Monitor file update.

Usage

(require 'hozumi.polling-config :as polling)

(def config-ref (polling/run-background "conf.clj" 60000));;60 sec interval

@config-ref
;=> {:a 1}

passing ref (def config-ref (ref nil)) (polling/run-background "conf.clj" 60000 config-ref) @config-ref => {:a 1}

Instalation

Leiningen [org.clojars.hozumi/clj-polling-config "1.0.4"]

License

Copyright (C) 2010 Takahiro Hozumi

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.