pub(crate) async fn watch(
activity: Arc<Mutex<Instant>>,
root: Option<u32>,
idle_timeout: Duration,
idle_tx: Sender<()>,
)Expand description
The pipe path’s idle watcher: every 200 ms, the time since the last byte
either stream read (activity); past idle_timeout, the gate decides, and
a stuck command gets idle_tx. The look at the tree is a blocking
snapshot, so it runs off the async runtime.