SetRefill godoc update
Vladimir Bauer
5 years ago
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | // SetRefill fills bar with refill rune up to amount argument. | |
| 131 | // Given default bar style is "[=>-]<+", refill rune is '+'. | |
| 132 | // To set bar style use mpb.BarStyle(string) BarOption. | |
| 130 | // SetRefill sets refill flag with specified amount. | |
| 131 | // The underlying BarFiller will change its visual representation, to | |
| 132 | // indicate refill event. Refill event may be referred to some retry | |
| 133 | // operation for example. | |
| 133 | 134 | func (b *Bar) SetRefill(amount int64) { |
| 134 | 135 | select { |
| 135 | 136 | case b.operateState <- func(s *bState) { |