Function
pipe
(input SimpleOutChannel, output SimpleInChannel, closeWhenDone bool)
Source from the content-addressed store, hash-verified
| 88 | } |
| 89 | |
| 90 | func 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 | |
| 99 | func multiplex(output SimpleInChannel, inputs []SimpleOutChannel, closeWhenDone bool) { |
| 100 | inputCount := len(inputs) |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…