Codebase list golang-github-vbauerster-mpb / 54ff528
b.render returns buf 1 channel Vladimir Bauer 8 years ago
2 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
267267 }
268268
269269 func (b *Bar) render(tw int, flushed chan struct{}, prependWs, appendWs *widthSync) <-chan []byte {
270 ch := make(chan []byte)
270 ch := make(chan []byte, 1)
271271
272272 go func() {
273273 defer func() {
210210 sequence[i] = b.render(tw, flushed, prependWs, appendWs)
211211 }
212212
213 ch := fanIn(sequence...)
214
215 for buf := range ch {
213 for buf := range fanIn(sequence...) {
216214 conf.cw.Write(buf)
217215 }
218216