A small polling watcher with content-based debouncing.
Polling is intentional here: it is portable, naturally recursive, and handles editor atomic-save rename sequences without maintaining a directory watch-key tree. The reload engine still receives one callback per stable content state.
A small polling watcher with content-based debouncing. Polling is intentional here: it is portable, naturally recursive, and handles editor atomic-save rename sequences without maintaining a directory watch-key tree. The reload engine still receives one callback per stable content state.
(start! {:keys [source-paths initial-signature poll-ms debounce-ms on-change
on-error]
:or {poll-ms 100 debounce-ms 100 on-error (fn [_])}})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 |