Codebase list golang-github-vbauerster-mpb / b27b93b
SetRefill godoc update Vladimir Bauer 5 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
127127 }
128128 }
129129
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.
133134 func (b *Bar) SetRefill(amount int64) {
134135 select {
135136 case b.operateState <- func(s *bState) {