(start-watcher! root ignored-files action)
Same as start-watcher-for-changes!
but expects 0-argument action
Same as [[start-watcher-for-changes!]] but expects 0-argument action
(start-watcher-for-changes! root ignored-files callback & callback-args)
Start watching files under root
for changes, excluding ignored-files
(as per cryogen-core.io/ignore
), and call (callback <callback-args> changeset)
upon every change detected. Where:
changeset
is a sequence of java.io.File
with root
-relative paths.callback-args
are any additional arguments to the callback, which will be
passed before the changesetStart watching files under `root` for changes, excluding `ignored-files` (as per [[cryogen-core.io/ignore]]), and call `(callback <callback-args> changeset)` upon every change detected. Where: - `changeset` is a sequence of `java.io.File` with `root`-relative paths. - `callback-args` are any additional arguments to the callback, which will be passed before the changeset
(watch-with-fallback! opts & groups)
Wraps hawk/watch! to swap in a polling implementation if any of the native OS file events interfaces fail.
Wraps hawk/watch! to swap in a polling implementation if any of the native OS file events interfaces fail.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close