Skip to main content

count_elements

Function count_elements 

Source
pub fn count_elements<T: Send + 'static>(
    src: Source<T>,
) -> (Source<T>, Arc<AtomicU64>)
Expand description

count_elements(src) — convenience: returns the source unchanged plus an Arc<AtomicU64> that totals every element.

typically expressed as monitor(. |_| counter.inc()).