progressbar icon indicating copy to clipboard operation
progressbar copied to clipboard

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

Open MagnusErikssonAB opened this issue 2 years ago • 1 comments

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

MagnusErikssonAB avatar Mar 13 '22 17:03 MagnusErikssonAB

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.

ctongfei avatar Mar 18 '22 06:03 ctongfei