- From: Ben Kelly <notifications@github.com>
- Date: Wed, 29 Nov 2017 15:05:25 +0000 (UTC)
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 29 November 2017 15:09:29 UTC
The typical pattern I've seen used is immediately invoking an async function passed to waitUntil: ```javascript self.addEventListener('install', evt => { evt.waitUntil(async function() { await stuff(); }()); // <-- see extra parens here }); ``` -- 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/1237#issuecomment-347887856
Received on Wednesday, 29 November 2017 15:09:29 UTC