Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Model Scatter

std/flow/scatter::Scatter


Sources

⤇ scattered: std/flow/scatter::scattered with @Scattered


Scatters values of streams over tracks of their own, and gathers how they end.

scatter makes a track for each value it receives, where scattered gives the value and the value shared by all of them, and gather tells how the track ended. Scattered tracks get the contexts of the track of scatter, with @Scattered.

Each use of Scatter is meant for one scatter (or scatterGathering), and the scattered and gather (or gatherValue) of its tracks, in the same treatment, as http/server::connection uses incoming and outgoing.