(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close