Open ForbesLindesay opened 11 years ago
That could easily be written as:
var promiseB = promiseA.constructor(function(resolver){
promiseA.then(resolver.fulfill, resolver.reject, function(val){
resolver.progress(0);
resolver.progress(1);
});
});
And of course libraries could provide a utility methods for that abstraction.
True, but that requires breaking your nice clean chain of thens.
The OP idea seems a bit unwise given that you could do setTimeout(prop, 50, 100);
Do we need to support propagating more progress events than we recieve?