drop BarCount
Vladimir Bauer
3 years ago
| 171 | 171 | } |
| 172 | 172 | } |
| 173 | 173 | |
| 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 | ||
| 185 | 174 | // Write is implementation of io.Writer. |
| 186 | 175 | // Writing to `*mpb.Progress` will print lines above a running bar. |
| 187 | 176 | // Writes aren't flushed immediately, but at next refresh cycle. |