Skip to main content

watched

Function watched 

Source
pub fn watched<T>(watch: &Watch, f: impl FnOnce() -> T) -> T
Expand description

Run f with watch active on this thread: every checkpoint inside answers to it. Scopes nest; the inner watch wins until it ends.