Skip to main content

watch_process_registry_with_sink

Function watch_process_registry_with_sink 

Source
pub fn watch_process_registry_with_sink(
    inner: Arc<dyn ProcessRegistry>,
    sink: Option<Arc<dyn ProcessEventSink>>,
) -> (Arc<dyn ProcessRegistry>, ProcessChangeHub)
Expand description

Wrap inner in a [WatchedProcessRegistry], optionally installing a ProcessEventSink that receives every appended event.

The sink is best-effort freshness, not truth — see ProcessEventSink.