Skip to main content

watch

Function watch 

Source
pub fn watch(
    path: PathBuf,
    changed: UnboundedSender<()>,
) -> Result<ConfigWatch, Error>
Expand description

Watch path and send one () per burst of content changes to it.

§Errors

There is no Tokio runtime to own the watch task, or the initial watcher could not be created or armed. Whether that is fatal is the caller’s call: a running forge keeps serving and says it is not watching.