-
Notifications
You must be signed in to change notification settings - Fork 90
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
Progress output is mangled when using async
#253
Comments
Had a quick look at the code and documentation, seems like
Output:
Sounds like this is the way to go. Note I assumed my example (using |
The problem appears when two parallel tasks try to erase and write at the same time Using |
this should now work by forcing the lock ( |
Output:
Seems like the line doesn't get properly cleared/overriden when multiple calls to
next!(progress)
happen concurrently.Note if I bump the sleep to a higher value (
sleep(i)
), the issue goes away:The text was updated successfully, but these errors were encountered: