- From: Jungkee Song <notifications@github.com>
- Date: Tue, 10 Jan 2017 17:46:24 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 11 January 2017 01:46:59 UTC
> Hmm, do you even need to go in parallel/queue a task? It seems like for promises you should be able to just do "upon fulfillment"/"upon rejection". I don't think we can guarantee the expected sequence by using "upon fulfillment"/"upon rejection" here. This `promise.then` for decreasing the count should be called after all the `promise.then()` functions called during the event dispatch. Either queuing a normal task or explicitly specifying the order of the microtask seems to be needed. -- 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/pull/1049#issuecomment-271754504
Received on Wednesday, 11 January 2017 01:46:59 UTC