shellprogressbar icon indicating copy to clipboard operation
shellprogressbar copied to clipboard

async Task await breaks progress bar

Open hahagu opened this issue 4 years ago • 0 comments

https://github.com/Mpdreamz/shellprogressbar/blob/master/src/ShellProgressBar.Example/Examples/IntegrationWithIProgressPercentageExample.cs

From the above example, the start function creates a progress bar, and binds ProcessFiles to the progress. What I have, is the exact same, but the ProcessFiles is an async Task, and is await-ed from inside the using statement of the progress bar.

This makes the progress bar always display 100%, and progress is not updated. How would this be solved?

hahagu avatar Aug 10 '21 18:08 hahagu