- From: Matt Falkenhagen <notifications@github.com>
- Date: Fri, 20 Oct 2017 23:37:34 +0000 (UTC)
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 20 October 2017 23:37:57 UTC
Just a question: is the dispatch flag set whenever you are in a microtask "chained" to the original event dispatch? e.g., does this throw?
```
onfetch = e => {
Promise.resolve().then(_ => Promise.resolve()).then(_ => Promise.resolve()).then(_ => e.waitUntil(p));
};
```
Similarly how about this one:
```
onfetch = e => {
e.waitUntil(some_promise);
some_promise.then(_ => Promise.resolve()).then(_ => Promise.resolve()).then(_ => e.waitUntil(another_promise));
};
```
--
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/1213#issuecomment-338345553
Received on Friday, 20 October 2017 23:37:57 UTC