Codebase list golang-github-vbauerster-mpb / 303de2e
minor: godoc edit Vladimir Bauer 1 year, 10 months ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
155155 }
156156 }
157157
158 // TraverseDecorators traverses all available decorators and calls cb func on each.
158 // TraverseDecorators traverses available decorators and calls cb func
159 // on each in a new goroutine. Decorators implementing decor.Wrapper
160 // interface are unwrapped first.
159161 func (b *Bar) TraverseDecorators(cb func(decor.Decorator)) {
160162 select {
161163 case b.operateState <- func(s *bState) {
326328 }
327329 }
328330
329 // DecoratorAverageAdjust adjusts decorators which implement decor.AverageDecorator interface.
331 // DecoratorAverageAdjust adjusts decorators implementing decor.AverageDecorator interface.
330332 // Call if there is need to set start time after decorators have been constructed.
331333 func (b *Bar) DecoratorAverageAdjust(start time.Time) {
332334 b.TraverseDecorators(func(d decor.Decorator) {