In many examples about progress bars i've seen that a loop is used to change
the progress bar value.
What if I want to show a progress bar for an operation that does not have
loops?
Like writing big file to disk. How to do that?
Also how to show the progress of a thread, which also don't have loops?
Thanks