Skip to main content

watch_inhibited

Function watch_inhibited 

Source
pub fn watch_inhibited(
    quiet: Arc<Mutex<Instant>>,
    told: Box<dyn Fn(bool) + Send>,
) -> Result<Watch, String>
Expand description

Follows the server’s Inhibited, on a thread of its own: told(on) hears each change, on that thread (it should hand any long work on).