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

Spinners in a multibar don't spin while a child process runs #52

Closed
migerh opened this issue Jun 10, 2018 · 2 comments
Closed

Spinners in a multibar don't spin while a child process runs #52

migerh opened this issue Jun 10, 2018 · 2 comments

Comments

@migerh
Copy link

migerh commented Jun 10, 2018

I observed that spinners do not spin while a child process runs that was spawned with std::process::Command. Especially when they are in a multibar. I created a small example that shows the issue: https://github.com/migerh/indicatif-multibar

The use_multibar_with_timeout_for_finish() example shows that while the child process is running, the spinners in the multibar do not update. They start spinning as soon as the child process finishes, though.

@andreivasiliu
Copy link
Contributor

The confusion here comes from the fact that calling .join() must be done in a separate thread, as that is what is doing the rendering. Same as #77.

#33 would have prevented this.

@mitsuhiko
Copy link
Collaborator

Going to close this as duplicate of #33.

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

3 participants