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?
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.
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](https://user-images.githubusercontent.com/95568266/158070790-5288362d-f93d-48cf-8fdb-bb5f0ff1b876.png)