Promise/Future: asynchrony in 'then'
Anne van Kesteren
annevk at annevk.nl
Tue Apr 30 12:55:16 PDT 2013
On Tue, Apr 30, 2013 at 5:55 PM, Juan Ignacio Dopazo
<dopazo.juan at gmail.com> wrote:
> I think it is covered by this language in the accept() algorithm:
>> Otherwise, the synchronous flag is unset, queue a task to process future's
>> resolve callbacks with value
> "queue a task" points to text in the Web Apps spec regarding the event loop.
Right. We might want to run this as a microtask instead maybe, but I
think a task similar to what setTimeout(..., 0) does is fine.
More information about the es-discuss