Closed
Bug 899557
Opened 11 years ago
Closed 6 years ago
Implement ProgressPromise
Categories
(Core :: DOM: Core & HTML, defect, P5)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jwatt, Unassigned)
References
()
Details
Comment 1•11 years ago
|
||
Let's call that a Stream? (In reply to Jonathan Watt [:jwatt] from comment #0) > https://github.com/slightlyoff/Promises/blob/master/ProgressFuture.idl No commit for the last 3 months and that's not part of the promise spec. I wouldn't count on the maturity of this tentative spec nor in the design.
Comment 2•11 years ago
|
||
I plan on adding it. I discussed it a bit with Mark around the TC39 meeting. We'll have to figure it out. A ProgressPromise represents progress of a single value. An object stream represents a stream of values. The differences is that with the former you can ignore the progress reports, but with the latter the individual bits are important.
I think we should prototype this as callback VoidAnyCallback = void (optional any value); interface ProgressPromise : Promise { ProgressPromise progress(VoidAnyCallback callback); } The function always returns 'this'. I.e. it returns the same object it was called on. It'll call its callback with API-specific progress information (just like a Promise returns an API-specific result). For now we should pref this such that it's only released on nightly and aurora though.
Updated•11 years ago
|
Keywords: dev-doc-needed
Reporter | ||
Updated•11 years ago
|
Assignee: jwatt → nobody
Updated•10 years ago
|
Comment 4•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Comment 6•6 years ago
|
||
Thanks for the nudge, this is WONTFIX now. I don't expect it to make a comeback, but specific APIs, such as fetch(), might offer ways to observe progress going forward: https://github.com/whatwg/fetch/issues/607.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•