minor: godoc
Vladimir Bauer
3 years ago
| 199 | 199 | |
| 200 | 200 | // Write is implementation of io.Writer. |
| 201 | 201 | // Writing to `*mpb.Progress` will print lines above a running bar. |
| 202 | // Writes aren't flushed immediatly, but at next refresh cycle. | |
| 202 | // Writes aren't flushed immediately, but at next refresh cycle. | |
| 203 | 203 | // If Write is called after `*mpb.Progress` is done, `mpb.DoneError` |
| 204 | 204 | // is returned. |
| 205 | 205 | func (p *Progress) Write(b []byte) (int, error) { |
| 237 | 237 | p.cwg.Wait() |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | // Shutdown cancels any running bar immediatly and then shutdowns (*Progress) | |
| 240 | // Shutdown cancels any running bar immediately and then shutdowns (*Progress) | |
| 241 | 241 | // instance. Normally you shouldn't call this method unless you know what are |
| 242 | 242 | // you doing. Proper way to shutdown is to call (*Progress).Wait() instead. |
| 243 | 243 | func (p *Progress) Shutdown() { |