agde_tokio

Function watch_changes

source
pub async fn watch_changes<CommitFut: Future<Output = ()> + Send>(
    commit: impl Fn() -> CommitFut + Send + Sync + 'static,
) -> impl Watcher
Expand description

Watch for changes.

You have to call [notify::Watcher::watch] to start watching and [notify::Watcher::unwatch] to stop the execution.