domenic / promises-unwrapping

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

Should we include Promise.async ? #17

Closed erights closed 10 years ago

erights commented 10 years ago

What about Promise.async http://wiki.ecmascript.org/doku.php?id=strawman:async_functions#reference_implementation ? Given the feedback we've been hearing about how wonderful async functions are in C# (and F#, etc), and given how quickly generators are coming, I think the need for this is more pressing.

erights commented 10 years ago

Note that the implementation at that link is out of date -- it is from the days of StopIteration. It needs to be updated for modern ES6 generators.

domenic commented 10 years ago

I am tempted, but on the other hand, it might end up being just vestigial in an ES7 world where promises get dedicated syntax of some sort. (In fact, it might be considered bad practice in such a world.)

annevk commented 10 years ago

Given that, I suggest we hold off on this until at least the basic design is deployed. We can then evaluate this for an upgrade to that.

domenic commented 10 years ago

Let's close this for now then.