Microtasks in the promise specification

# Daira Hopwood (12 years ago)

I was reading the draft specification of an ES6 promise API in domenic/promises-unwrapping/blob/master/README.md, and noticed that the definition of microtasks seems underspecified.

I see this has been discussed to some extent in promises-aplus/promises-spec#139. However, it seems to have been implicitly assumed that the execution model is sequential. Given that things called "tasks" in several other languages are executed in parallel, it seems to me that this assumption should be made explicit. That is, it should be explicitly stated that microtasks must be executed to completion sequentially with respect to other code and other microtasks. (Otherwise, there can be data races on accesses to shared locations, which is clearly not desirable or intended.)

# Allen Wirfs-Brock (12 years ago)

coming soon to a ES6 draft near you...