Re: [w3c/ServiceWorker] async waitUntil microtask issue (#1213)

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