Re: [w3c/ServiceWorker] Formalizing a timeout API (#1292)

@annevk sorry I neglected to respond to your comment. Not sure it makes sense to use `AbortController` since `skipWaiting()` isn't really about a request. Although you could definitely describe `skipWaiting()` as a way to "abort" the existing worker.

The only formal description of `skipWaiting` I've seen is in the spec. The tl;dr: is
1. [Set the skipWaiting flag](https://w3c.github.io/ServiceWorker/#service-worker-global-scope-skipwaiting)
2. [Run the try activate algorithm](https://w3c.github.io/ServiceWorker/#try-activate-algorithm), which will actually activate once there are no pending events in the existing worker.

-- 
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/1292#issuecomment-467271844

Received on Tuesday, 26 February 2019 02:47:18 UTC