Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Splitter ¶
type Splitter struct {
// contains filtered or unexported fields
}
Splitter splits its input into multiple proc outputs. Since procs run from the receiver backward via Pull(), SplitProc pulls data from upstream when all the outputs are ready, then sends the data downstream.
This scheme implements flow control since the SplitProc prevents any of the downstream from running ahead, esentially running the parallel paths at the rate of the slowest consumer.
Click to show internal directories.
Click to hide internal directories.