Codebase list golang-github-vbauerster-mpb / 0dd6a37
drop BarCount Vladimir Bauer 3 years ago
1 changed file(s) with 0 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
171171 }
172172 }
173173
174 // BarCount returns bars count.
175 // func (p *Progress) BarCount() int {
176 // result := make(chan int)
177 // select {
178 // case p.operateState <- func(s *pState) { result <- s.bHeap.Len() }:
179 // return <-result
180 // case <-p.done:
181 // return 0
182 // }
183 // }
184
185174 // Write is implementation of io.Writer.
186175 // Writing to `*mpb.Progress` will print lines above a running bar.
187176 // Writes aren't flushed immediately, but at next refresh cycle.