MCPcopy Create free account
hub / github.com/eapache/channels / pipe

Function pipe

channels.go:90–97  ·  view source on GitHub ↗
(input SimpleOutChannel, output SimpleInChannel, closeWhenDone bool)

Source from the content-addressed store, hash-verified

88}
89
90func pipe(input SimpleOutChannel, output SimpleInChannel, closeWhenDone bool) {
91 for elem := range input.Out() {
92 output.In() <- elem
93 }
94 if closeWhenDone {
95 output.Close()
96 }
97}
98
99func multiplex(output SimpleInChannel, inputs []SimpleOutChannel, closeWhenDone bool) {
100 inputCount := len(inputs)

Callers 2

PipeFunction · 0.85
WeakPipeFunction · 0.85

Calls 3

OutMethod · 0.65
InMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…