Skip to main content

start_watch

Function start_watch 

Source
pub fn start_watch(
    root: PathBuf,
    respect_gitignore: bool,
) -> (Receiver<WatchProgress>, CancelToken)
Expand description

Spawn a recursive filesystem watch rooted at root. Returns a receiver of WatchProgress events and a cancel handle. Dropping the cancel handle stops the watcher.