-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Description
My program is creating 2 Bars like so:
uiprogress.Start()
bar := uiprogress.AddBar(int(file.Size())).PrependElapsed().
AppendCompleted()
bar.PrependFunc(func(b *uiprogress.Bar) string {
return paddedName
})
bar.Fill = '#'
bar.Head = '#'
bar.Empty = ' '
// In a calback, keep calling this until done:
bar.Set(int(count))
uiprogress.Stop()
I would expect to see 2 lines of output, one per bar -- instead I am seeing the following:
Bar1 --- [############################################################# ] 90%
Bar1 --- [####################################################################] 100%
Bar2 --- [############################################################# ] 90%
Bar1 --- [####################################################################] 100%
Bar2 --- [####################################################################] 100%
I am creating the bars in arbitrary goroutines. Is this an issue? Should all the bars be created in a single goroutine?
Metadata
Metadata
Assignees
Labels
No labels