FileWatcher protocol and WatchService-based implementation.
Provides file system watching for hot-reload coordination. Uses Java WatchService for cross-platform file event detection.
FileWatcher protocol and WatchService-based implementation. Provides file system watching for hot-reload coordination. Uses Java WatchService for cross-platform file event detection.
(add-paths! watcher paths)Start watching paths (dirs or files) on an ALREADY RUNNING watcher
without restarting it, so no event window is lost. Returns true when the
watcher was running and the paths were registered, nil otherwise.
Start watching `paths` (dirs or files) on an ALREADY RUNNING `watcher` without restarting it, so no event window is lost. Returns true when the watcher was running and the paths were registered, nil otherwise.
(create-watcher)Create a new WatchServiceWatcher instance.
Create a new WatchServiceWatcher instance.
Protocol for watching file system changes.
Protocol for watching file system changes.
(start! this paths callback)Start watching paths. Callback receives {:file path :type :modify|:create|:delete}
Start watching paths. Callback receives {:file path :type :modify|:create|:delete}
(stop! this)Stop watching and clean up resources.
Stop watching and clean up resources.
(watching? this)Returns true if watcher is currently active.
Returns true if watcher is currently active.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |