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

async Task await breaks progress bar #87

Open
hahagu opened this issue Aug 10, 2021 · 0 comments
Open

async Task await breaks progress bar #87

hahagu opened this issue Aug 10, 2021 · 0 comments

Comments

@hahagu
Copy link

hahagu commented Aug 10, 2021

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?

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

1 participant