-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix race condition in (*Spinner).Print
#46
Conversation
(*Spinner).Print
@fortytw2 Thanks so much for this! If you wouldn't mind adding a test that would be perfect! |
Of course! Added a test that fails without the additional locks @chelnak. Thanks for the great library :) |
Thank you for the test.
I can see you spotted it too. |
@fortytw2 If there is anything I can do to help progress this let me know. As soon as we merge, I'm happy to cut a release 🙂 |
Should be good to go @chelnak - let me know if you'd like me to rebase/squash commits in here before merging. |
Nah I think we are all good. Your commits are clear enough to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks perfect 🤩
Thanks @chelnak ! |
Hey! Started using this repo after needing multiple spinners (migrated from
yacspin
) and noticed a race condition caused by(*Spinner).Print(
whenUpdateMessage(
is used from different goroutines.I can add a test that reproduces this race detector failure if you'd like, too.