Skip to main content

with_snapshot

Function with_snapshot 

Source
pub fn with_snapshot<T>(
    snapshot: Option<&WatchSnapshot>,
    f: impl FnOnce() -> T,
) -> T
Expand description

Run f under a snapshot taken on another thread: how a parallel stage keeps answering the caller’s watch.