Re: [w3c/ServiceWorker] async waitUntil() does not allow extension on final promise resolution? (#1039)

That behavior means,

The "count decrease" job should be queued as a microtask exactly in the position marked $ below:
| resolve p [then_1: q] [then_2: r] [then_3: chain] $ [then_4: s] |

(assuming "||" is a task boundary, "[]" is a microtask.)

even though p.[[PromiseFulfillReactions]] contains the reactions in this order: ["count decrease", q, r, the chain for s].

Also it seems we'll need some customization to Promise hooks (https://html.spec.whatwg.org/#enqueuejob(queuename,-job,-arguments) or somewhere) to record and detect the depth of the then callbacks for the queued microtasks?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1039#issuecomment-272388815

Received on Friday, 13 January 2017 08:35:17 UTC