Skip to main content

spawn

Function spawn 

Source
pub fn spawn(
    root: PathBuf,
    interval: Duration,
    tx: Sender<Msg>,
) -> WatcherHandle
Expand description

Spawns the watcher thread. It sends Msg::FilesChanged whenever the (mtime, size) sweep differs from the previous one.