Document SetCurrent may panic
Vladimir Bauer
5 years ago
| 179 | 179 |
}
|
| 180 | 180 |
|
| 181 | 181 |
// SetCurrent sets progress' current to an arbitrary value.
|
|
182 |
// Setting a negative value will cause a panic.
|
| 182 | 183 |
func (b *Bar) SetCurrent(current int64) {
|
| 183 | 184 |
select {
|
| 184 | 185 |
case b.operateState <- func(s *bState) {
|