Skip to main content

SendMerger

Type Alias SendMerger 

Source
pub type SendMerger<S> = Arc<dyn Fn(S, S) -> S + Send + Sync>;
Expand description

Two-state merger applied per branch result during a send-edge fold — the dispatch loop calls it once per branch with (folded_so_far, branch_state) -> next_folded.

In production this is constructed by StateGraph::add_send_edges as a thin wrap over the state’s StateMerge::merge impl, so adding new state fields automatically participates in the join shape — no manual reducer plumbing on the call site.

Aliased Type§

pub struct SendMerger<S> { /* private fields */ }