Are Promises and Microtasks introduced into ES6?

Yusuke SUZUKI yusukesuzuki at chromium.org
Thu Oct 3 10:41:20 PDT 2013


Thu, Oct 3, 2013 at 11:43 PM, Alex Russell <slightlyoff at google.com> wrote:
>
> Only that a suitable hook is needed that embedders can implement. Luckily
> that's simple WRT existing semantics (we are oblivious to future turns at
> the language level) and doesn't demand that we import the event loop itself
> into the language. The only requirement is that promises are async WRT the
> calling code. Delivery at the end of the current turn is allowed.
> Object.observe will require that we define an order, but until then, hand
> waving is sufficient.
>

Make sense. So microtasks won't be introduced yet, but Promises and
asynchronous execution semantics (enough for Promises) are introduced into
ES6. Is it correct?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131004/c34b39c4/attachment-0001.html>


More information about the es-discuss mailing list