Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no way to wait "Finish" function #126

Open
fortael opened this issue Apr 14, 2018 · 1 comment
Open

There is no way to wait "Finish" function #126

fortael opened this issue Apr 14, 2018 · 1 comment

Comments

@fortael
Copy link

fortael commented Apr 14, 2018

It's seem to be that Finish method doing all magic in goroutine. So when it's finished it doesn't mean exactly that printing is finished too. For example

wg.Wait()
bar.Finish()

println("Done")
println("Checked: N")
println("Completed: N")

Sometimes it works exactly like expected

 10000 / 10000 [======================] 100.00% 2s
Done
Checked: N
Completed: N

Sometimes it's not

 9164 / 10000 [=======================>--]  91.64%Done
Checked: N
Completed: N
 10000 / 10000 [======================] 100.00% 2s
@cheggaaa
Copy link
Owner

cheggaaa commented May 4, 2018

If you don't use multiple bar - just switch to v2
The problem is known to me.
Later I will correct this behavior in v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants