-
Notifications
You must be signed in to change notification settings - Fork 1
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
A simpler notion of progress #7
Comments
I think something very simple like what you describe would be very useful. One thing we've been wondering about is aligning with http://www.w3.org/TR/progress-events/ as perhaps that might be something used with promises in future W3C specs. |
@skaegi thanks for the link. It seems like the w3c's In the issue thread I mentioned above, I think I've come to the conclusion that ETA may be a better/simpler notion in many cases. Combining percentages for parallel operations is easy, but I think is tough for sequential operations unless you have visibility to the entire sequence (or at least, you know how many operations are in the entire sequence). Promises in a promise graph only know about their immediate neighbors. ETA is easy for sequence and parallel operations (see the thread for more info). So, anything sum-based, like However, one problem with combining |
Yeah, ProgressEvent is obsoleted by http://xhr.spec.whatwg.org/ |
@domenic thanks! The whatwg xhr spec looks like it absorbed the previous ProgressEvent spec nearly verbatim. Am I reading that right, or has it been tweaked/evolved? |
I'm not entirely sure of the history; usually W3C specs copy WHATWG specs (and thus WHATWG specs are more up to date, since the W3C snapshots only occur periodically). Certainly it looks like later revisions of ProgressEvents were extracted from XHR. In this case I think the work started in ProgressEvents before moving to XHR a year ago; since then it's been the familiar WHATWG -> W3C snapshot process. |
We've been discussing a simpler idea for progress over at cujojs/when#264. The essence is that if you restrict progress values to being numbers between 0 and 1, combining them is easy. It rules out the use of arbitrary values for progress, but to me, that's a win.
I figured I'd cross-link here for potential discussion since it's a fairly different approach.
The text was updated successfully, but these errors were encountered: