Pipe connects the input channel to the output channel so that they behave as if a single channel.
(input SimpleOutChannel, output SimpleInChannel)
| 161 | // Pipe connects the input channel to the output channel so that |
| 162 | // they behave as if a single channel. |
| 163 | func Pipe(input SimpleOutChannel, output SimpleInChannel) { |
| 164 | go pipe(input, output, true) |
| 165 | } |
| 166 | |
| 167 | // Multiplex takes an arbitrary number of input channels and multiplexes their output into a single output |
| 168 | // channel. When all input channels have been closed, the output channel is closed. Multiplex with a single |
searching dependent graphs…