[][src]Function sarchive::monitor::monitor

pub fn monitor(
    scheduler: &Box<dyn Scheduler>,
    path: &Path,
    s: &Sender<Box<dyn JobInfo>>,
    sigchannel: &Receiver<bool>
) -> Result<()>

The monitor function uses a platform-specific watcher to track inotify events on the given path, formed by joining the base and the hash path. At the same time, it check for a notification indicating that it should stop operations upon receipt of which it immediately returns.