pub fn with_snapshot<T>(
snapshot: Option<&WatchSnapshot>,
f: impl FnOnce() -> T,
) -> TExpand description
Run f under a snapshot taken on another thread: how a parallel stage
keeps answering the caller’s watch.
pub fn with_snapshot<T>(
snapshot: Option<&WatchSnapshot>,
f: impl FnOnce() -> T,
) -> TRun f under a snapshot taken on another thread: how a parallel stage
keeps answering the caller’s watch.