Skip to main content

unit

Function unit 

Source
pub fn unit() -> impl Accumulator<State = (), Update = ()>
Expand description

Trivial () payload for scatter/gather patterns where the caller only cares that all expected replies arrived, not about any per-reply payload.

Note: this does not itself provide a barrier — the all-arrived guarantee comes from the reduce port’s expected peer count. unit() just supplies the trivial () payload.