Re: [ServiceWorker] Fetch API respondWith's implicit RETURN (#844)

> 1) New-up a new promise immediately in the FetchEvent
> 2) Call fetchEvent.respondWith(myNewPromise)
> 3) In my reply function, instead of calling respondWith I'll call myPromise.resolve()

Bingo - that's indeed the pattern you want. (Well, not literally `myPromise.resolve()` of course...)

(Good luck with the sick offspring!)







---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/844#issuecomment-195660062

Received on Saturday, 12 March 2016 04:45:19 UTC