Fix typos in comment
Vladimir Bauer
9 years ago
| 205 | 205 | return p |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | // Stop shutdowns Progress' goroutine | |
| 209 | // Should be called only after each bor's work done, i.e. bar has reached its | |
| 210 | // 100 %. It is NOT for concelation. Use WithContext or WithCancel for | |
| 208 | // Stop shutdowns Progress' goroutine. | |
| 209 | // Should be called only after each bar's work done, i.e. bar has reached its | |
| 210 | // 100 %. It is NOT for cancelation. Use WithContext or WithCancel for | |
| 211 | 211 | // cancelation purposes. |
| 212 | 212 | func (p *Progress) Stop() { |
| 213 | 213 | p.wg.Wait() |