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

Wait of stop event instead of sleep. #97

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Conversation

eerimoq
Copy link
Contributor

@eerimoq eerimoq commented Dec 10, 2020

In my script one spinner is shown per build step. The first time a step takes a few seconds, and the spinner overhead is negligible. However, the next time steps ends almost instantly, and the spinner overhead of about one interval per spinner, in my case n * 80 ms, which is actually quite irritating. This PR waits on the stop condition instead of sleeping, which makes the spinner finish immediately.

@pavdmyt pavdmyt merged commit 2d6354b into pavdmyt:master Dec 16, 2020
@pavdmyt
Copy link
Owner

pavdmyt commented Dec 16, 2020

Hi @eerimoq

Thanks for the PR! It will be included into the next release.

@eerimoq
Copy link
Contributor Author

eerimoq commented Dec 16, 2020

Great :D

@pavdmyt pavdmyt mentioned this pull request Jan 17, 2021
@pavdmyt
Copy link
Owner

pavdmyt commented Jan 17, 2021

Included in yaspin 1.3.0.

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

Successfully merging this pull request may close these issues.

2 participants