Skip to main content

run_watcher_thread

Function run_watcher_thread 

Source
pub fn run_watcher_thread<W, E, F>(
    config: WatcherFilterConfig,
    extra_watch_paths: Vec<PathBuf>,
    matcher: SharedGitignore,
    matcher_generation: Arc<AtomicU64>,
    dispatch_tx: Sender<WatcherDispatchEvent>,
    shutdown: Arc<AtomicBool>,
    attach: F,
)
where W: Send + 'static, E: Display, F: FnOnce(PathBuf, Vec<PathBuf>, Sender<Result<Event>>) -> Result<W, E>,