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

Is it possible to wait for the drawing of the bar to complete? #130

Open
MagnusErikssonAB opened this issue Mar 13, 2022 · 1 comment
Open

Comments

@MagnusErikssonAB
Copy link

When using the "imperative style" I sometimes end up with the progress bar stop drawing at say 10% - is this due to the background thread terminating when the block is exited and if so is there a way to wait for the drawing of the bar to finish before exiting the block?
image

@ctongfei
Copy link
Owner

Are you using the try (Progressbar pb = ...) pattern? If yes, it should stop properly. If not, you can use pb.close() to manually finish the progress bar, forcing it to draw one last time.

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