Codebase list golang-github-vbauerster-mpb / 9628fba
remove legacy Vladimir Bauer 6 years ago
1 changed file(s) with 0 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
111111 return bar
112112 }
113113
114 // RemoveAllPrependers removes all prepend functions.
115 func (b *Bar) RemoveAllPrependers() {
116 select {
117 case b.operateState <- func(s *bState) { s.pDecorators = nil }:
118 case <-b.done:
119 }
120 }
121
122 // RemoveAllAppenders removes all append functions.
123 func (b *Bar) RemoveAllAppenders() {
124 select {
125 case b.operateState <- func(s *bState) { s.aDecorators = nil }:
126 case <-b.done:
127 }
128 }
129
130114 // ProxyReader wraps r with metrics required for progress tracking.
131115 func (b *Bar) ProxyReader(r io.Reader) io.ReadCloser {
132116 if r == nil {