last
last copied to clipboard
"previously-returned pending promises stay pending forever"
Regarding "previously-returned pending promises stay pending forever" - would it be desirable if they'd be canceled/deleted/nulled instead? (if that's possible)
I think if we had a notion of cancelation in promises then that would make sense. I'm not sure what deleted or nulled would mean.
I do hope that ES6 promises become cancellable. Even for the first simple version we have now, cancellation really is a missing feature.
On http://stackoverflow.com/questions/21781434/status-of-cancellable-promises you wrote: "But that depends on a lot of people doing a lot of work, so we'll see if it happens :)"
I hope it will.
https://github.com/slightlyoff/ServiceWorker/issues/625#issuecomment "I think it would require some concerted all-hands-on-deck API design to come up with the correct semantics for cancelable promises"
Having a token would work for me, I think.
So, ideally, ES6 promises would soon become cancellable, and you could then (if you want) resolve and close this ticket :)