Codebase list golang-github-vbauerster-mpb / 30f2e3e
Exported comments Vladimir Bauer 9 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
143143 }
144144 }
145145
146 // InProgress returns true, while progress is running
147 // Can be used as condition in for loop
146148 func (b *Bar) InProgress() bool {
147149 return !b.isDone()
148150 }
149151
152 // PrependFunc prepends DecoratorFunc
150153 func (b *Bar) PrependFunc(f DecoratorFunc) *Bar {
151154 b.decoratorCh <- &decorator{decoratorPrepend, f}
152155 return b
153156 }
154157
158 // AppendFunc appends DecoratorFunc
155159 func (b *Bar) AppendFunc(f DecoratorFunc) *Bar {
156160 b.decoratorCh <- &decorator{decoratorAppend, f}
157161 return b