domenic / promises-unwrapping

The ES6 promises spec, as per September 2013 TC39 meeting
1.23k stars 95 forks source link

promise.prototype.thenReturn() #115

Closed jonathanong closed 10 years ago

jonathanong commented 10 years ago

is there a spec for bluebird's version of this?

domenic commented 10 years ago

No. It is a nonstandard Bluebird extension.

cscott commented 10 years ago

Fwiw, the prfun npm package implements many bluebird extensions on top of standard ES6 promises. On Jul 12, 2014 1:46 PM, "Domenic Denicola" notifications@github.com wrote:

Closed #115 https://github.com/domenic/promises-unwrapping/issues/115.

— Reply to this email directly or view it on GitHub https://github.com/domenic/promises-unwrapping/issues/115#event-140939995 .

jonathanong commented 10 years ago

@domenic are there plans to add more features like this to the promises spec or is the promise API locked like it's node.js? i know there's enough shit to deal with for es6

stefanpenner commented 10 years ago

Frozen for es6

jonathanong commented 10 years ago

i mean for es7+

domenic commented 10 years ago

Unclear, I want to add Promise.prototype.finally at least, but getting consensus on ES stuff is hard :-/

stefanpenner commented 10 years ago

Finally is quite important for real life scenarios, much more then race :trollface:

Atleast it's easy to polyfil, but hopefully it comes in officially sometime soon