Closed jvmlet closed 3 years ago
Hi @jvmlet !
I don't fully understand what you mean here: what is the semantics of await
?
Blocks until latch reaches 0 ( 100% progress).
Blocking the main thread until the progress finishes?
Yes
Should this be a progress bar's job? I suppose that when a user starts a task that is tracked by a progress bar, one can always await on that task instead of on the progress bar.
You are right, but in most cases completion is tracked by count down latch. I thought that if progress bar has this count, it would be easier to do this via progress bar
In the spirit of decoupling and modularizing software modules, I have decided not to implement this feature since this is out of scope of a progress bar. Thanks @jvmlet for the suggestion.
Would you please add await capability to the progress bar :