Skip to main content

Module watch

Module watch 

Source
Expand description

Debounced filesystem watcher.

Wraps notify-debouncer-mini so callers don’t need to deal with the debouncer event type. Returns a WatcherHandle that owns the background thread; the handle must be kept alive for the watcher to run.

Structs§

WatchConfig
Configuration for spawn_watcher.
WatcherHandle
Owns the watcher background thread. Drop to stop watching.

Functions§

default_ignore_paths
Default ignore subtrees common to dev servers. Includes the universal junk: node_modules, .git, target. Callers should append their own build-output directory and any tool-specific cache directories before passing this to spawn_watcher.
spawn_watcher
Start a debounced recursive watcher.