Function vector::config::watcher::spawn_thread
source ยท pub fn spawn_thread<'a>(
watcher_conf: WatcherConfig,
signal_tx: SignalTx,
config_paths: impl IntoIterator<Item = &'a PathBuf> + 'a,
delay: impl Into<Option<Duration>>,
) -> Result<(), Error>
Expand description
Sends a ReloadFromDisk on config_path changes. Accumulates file changes until no change for given duration has occurred. Has best effort guarantee of detecting all file changes from the end of this function until the main thread stops.