Re: [w3c/ServiceWorker] How do I get extendableEvent.waitUntil() to play nicely with async functions (#1237)

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