diff --git a/README.md b/README.md index 1d2e628..55e469e 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ mpb.WithWidth(100), // override default "[=>-]" format mpb.WithFormat("╢▌▌░╟"), - // override default 100ms refresh rate - mpb.WithRefreshRate(120*time.Millisecond), + // override default 120ms refresh rate + mpb.WithRefreshRate(100*time.Millisecond), ) total := 100 @@ -97,8 +97,7 @@ } }() } - // Wait for incr loop goroutines to finish, - // and shutdown mpb's rendering goroutine + // Gracefully shutdown mpb's monitor goroutine p.Stop() ``` diff --git a/bar.go b/bar.go index d8c59d2..4a11f22 100644 --- a/bar.go +++ b/bar.go @@ -36,7 +36,7 @@ quit chan struct{} once sync.Once - // cacheState is used after b.done is receiveable + // cacheState is used after quit is closed cacheState *bState } diff --git a/examples/simple/main.go b/examples/simple/main.go index 60d7f8f..c53ef9f 100644 --- a/examples/simple/main.go +++ b/examples/simple/main.go @@ -39,7 +39,6 @@ } }() } - // Wait for incr loop goroutines to finish, - // and shutdown mpb's rendering goroutine + // Gracefully shutdown mpb's monitor goroutine p.Stop() } diff --git a/examples/singleBar/main.go b/examples/singleBar/main.go index da0c5f3..9261e6c 100644 --- a/examples/singleBar/main.go +++ b/examples/singleBar/main.go @@ -14,8 +14,8 @@ mpb.WithWidth(100), // override default "[=>-]" format mpb.WithFormat("╢▌▌░╟"), - // override default 100ms refresh rate - mpb.WithRefreshRate(120*time.Millisecond), + // override default 120ms refresh rate + mpb.WithRefreshRate(100*time.Millisecond), ) total := 100