Re: [w3c/ServiceWorker] Consider throwing when non-promise is passed to `waitUntil`. (#1068)

Maybe we just need to push a pattern like:

```js
const response = Promise.try(async () => {
  // …
});

event.respondWith(response);
```

-- 
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/1068#issuecomment-278338779

Received on Wednesday, 8 February 2017 14:12:28 UTC