-
Notifications
You must be signed in to change notification settings - Fork 123
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
incrementing vs setting progress #33
Comments
Can you please elaborate on your use case? 95% of use cases is to increment because of io.Reader and io.Writer. |
I had a producer/consumer setup that was already reporting statistics. So I had total number of jobs and finished jobs. I could either read the current progress value and calculate the increment to turn it into a relative value or I could pass a reference to the bar into all the consumers. |
Sorry for late reply, I've implemented this in |
Looks good! |
The increment only or relative interface feels a little awkward for some use cases. Is there a particular reason not to allow for setting the absolute value of the progress?
The text was updated successfully, but these errors were encountered: