Skip to main content

watching

Function watching 

Source
pub fn watching<T>(
    watcher: impl FnMut(&Progress<'_>) -> bool + 'static,
    f: impl FnOnce() -> T,
) -> T
Expand description

Runs f with watcher told how far it is, and asked whether to go on.