- From: stefan hakansson <notifications@github.com>
- Date: Fri, 23 Dec 2016 05:49:54 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 23 December 2016 13:50:21 UTC
Related(?): I've been trying to use ```.waitUntil()``` with the ```push``` event to make sure things get done before the SW stops, basically: ``` self.addEventListener('push', evt => { evt.waitUntil(handlePush(evt.data)); //or alternatively just: handlePush(evt.data); } ``` where ```handlePush``` returns a promise that is resolved when done. I could not determine any prolonged run time with ```evt.waitUntil```. Is it specified anywhere what events should change the run time of the SW if used with ```waitUntil```? It is clear for that ```install``` and ```activate``` things change with ```waitUntil```, and there is something said about fetched, but what is the story beyond that? -- 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-268992380
Received on Friday, 23 December 2016 13:50:21 UTC