Codebase list golang-github-vbauerster-mpb / 62e464a
Document SetCurrent may panic Vladimir Bauer 5 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
179179 }
180180
181181 // SetCurrent sets progress' current to an arbitrary value.
182 // Setting a negative value will cause a panic.
182183 func (b *Bar) SetCurrent(current int64) {
183184 select {
184185 case b.operateState <- func(s *bState) {