Skip to main content

watch_config

Function watch_config 

Source
pub fn watch_config(
    on_reload: impl Fn(Config) + Send + 'static,
) -> Option<JoinHandle<()>>
Expand description

Watch config files for changes and reload when modified. Returns a handle that can be dropped to stop watching.