Codebase list golang-github-vbauerster-mpb / 540cd9c
move RR method up Vladimir Bauer 9 years ago
1 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
6464 return p
6565 }
6666
67 // RefreshRate overrides default (30ms) refreshRate value
68 func (p *progress) RefreshRate(d time.Duration) *progress {
69 p.interval <- d
70 return p
71 }
72
6773 // AddBar creates a new progress bar and adds to the container
6874 func (p *progress) AddBar(total int) *Bar {
6975 p.wg.Add(1)
7783 result := make(chan bool)
7884 p.op <- &operation{barRemove, b, result}
7985 return <-result
80 }
81
82 // RefreshRate overrides default (30ms) refreshRate value
83 func (p *progress) RefreshRate(d time.Duration) *progress {
84 p.interval <- d
85 return p
8686 }
8787
8888 // WaitAndStop stops listening