Skip to main content

create_watcher

Function create_watcher 

Source
pub fn create_watcher(
    paths: &[String],
    ignore: Option<&[String]>,
    base_dir: &Path,
    process_name: String,
    restart_tx: Sender<String>,
) -> Result<WatchHandle, String>
Expand description

Create a file watcher that sends the process name to restart_tx when watched files change (after debounce).