Exported comments
Vladimir Bauer
9 years ago
| 143 | 143 | } |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | // InProgress returns true, while progress is running | |
| 147 | // Can be used as condition in for loop | |
| 146 | 148 | func (b *Bar) InProgress() bool { |
| 147 | 149 | return !b.isDone() |
| 148 | 150 | } |
| 149 | 151 | |
| 152 | // PrependFunc prepends DecoratorFunc | |
| 150 | 153 | func (b *Bar) PrependFunc(f DecoratorFunc) *Bar { |
| 151 | 154 | b.decoratorCh <- &decorator{decoratorPrepend, f} |
| 152 | 155 | return b |
| 153 | 156 | } |
| 154 | 157 | |
| 158 | // AppendFunc appends DecoratorFunc | |
| 155 | 159 | func (b *Bar) AppendFunc(f DecoratorFunc) *Bar { |
| 156 | 160 | b.decoratorCh <- &decorator{decoratorAppend, f} |
| 157 | 161 | return b |