Codebase list golang-github-vbauerster-mpb / fe9b620
minor: godoc Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
199199
200200 // Write is implementation of io.Writer.
201201 // 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.
203203 // If Write is called after `*mpb.Progress` is done, `mpb.DoneError`
204204 // is returned.
205205 func (p *Progress) Write(b []byte) (int, error) {
237237 p.cwg.Wait()
238238 }
239239
240 // Shutdown cancels any running bar immediatly and then shutdowns (*Progress)
240 // Shutdown cancels any running bar immediately and then shutdowns (*Progress)
241241 // instance. Normally you shouldn't call this method unless you know what are
242242 // you doing. Proper way to shutdown is to call (*Progress).Wait() instead.
243243 func (p *Progress) Shutdown() {