Codebase list golang-github-vbauerster-mpb / 8833407
buffered ch is not necessary Vladimir Bauer 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9292 // AddBar creates a new progress bar and adds to the container.
9393 func (p *Progress) AddBar(total int64, options ...BarOption) *Bar {
9494 p.wg.Add(1)
95 result := make(chan *Bar, 1)
95 result := make(chan *Bar)
9696 select {
9797 case p.operateState <- func(s *pState) {
9898 options = append(options, barWidth(s.width), barFormat(s.format))