WeakTee behaves like Tee (duplicating a single input into multiple outputs) except that it does not close the output channels when the input channel is closed.
(input SimpleOutChannel, outputs ...SimpleInChannel)
| 213 | // WeakTee behaves like Tee (duplicating a single input into multiple outputs) except that it does not close |
| 214 | // the output channels when the input channel is closed. |
| 215 | func WeakTee(input SimpleOutChannel, outputs ...SimpleInChannel) { |
| 216 | if len(outputs) == 0 { |
| 217 | panic("channels: WeakTee requires at least one output") |
| 218 | } |
| 219 | go tee(input, outputs, false) |
| 220 | } |
| 221 | |
| 222 | // WeakDistribute behaves like Distribute (distributing a single input amongst multiple outputs) except that |
| 223 | // it does not close the output channels when the input channel is closed. |
nothing calls this directly
no test coverage detected
searching dependent graphs…