Liking cljdoc? Tell your friends :D

clj-toolbox.atoms


make-file-backed-atomclj

(make-file-backed-atom filename)
(make-file-backed-atom filename default-value)

Takes a filename and an optional default value. Returns an atom that will write its value to the file every time it is updated The initial value of the atom will be either the contents of the file if it exists, the default-value, or nil

Takes a filename and an optional default value.
Returns an atom that will write its value to the file every time it is updated
The initial value of the atom will be either the contents of the file if it exists, the default-value, or nil
sourceraw docstring

watch-changed-timestampclj

(watch-changed-timestamp a)

Takes an atom and returns another atom that will be updated with a timestamp (long, number of milliseconds since UNIX epoch) every time the input atom is updated

Takes an atom and returns another atom that will be updated with a timestamp (long, number of milliseconds since UNIX epoch) every time the input atom is updated
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close