Codebase list golang-github-vbauerster-mpb / cabcd4d
condBuilder returns BarFillerBuilder Vladimir Bauer 4 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5353 p.Wait()
5454 }
5555
56 func condBuilder(cond bool) mpb.BarFillerBuilderFunc {
56 func condBuilder(cond bool) mpb.BarFillerBuilder {
5757 return mpb.BarFillerBuilderFunc(func() mpb.BarFiller {
5858 bs := mpb.BarStyle()
5959 if cond {
5454 p.Wait()
5555 }
5656
57 func condBuilder(cond bool) mpb.BarFillerBuilderFunc {
57 func condBuilder(cond bool) mpb.BarFillerBuilder {
5858 return mpb.BarFillerBuilderFunc(func() mpb.BarFiller {
5959 if cond {
6060 // spinner Bar on cond