Re: [slightlyoff/ServiceWorker] consider allowing multiple worker thread instances for a single registration (#756)

> I think so, but I'd have to try it to be certain. It sounds promising, assuming I can keep the SharedWorker alive long enough when a background sync event has triggered. It has to do a fair amount of async IDB work, but there's no setTimeouts involved.

You would use a `waitUntil()` to hold the ServiceWorker alive while the SharedWorker is doing its work.  This should work for most workloads.  In theory you could trigger the hard kill if you try to keep it alive for many minutes in the background, though.

For other SharedWorker issues, see:

  https://github.com/slightlyoff/ServiceWorker/issues/678
  https://github.com/whatwg/html/issues/411

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/756#issuecomment-237893052

Received on Friday, 5 August 2016 16:11:56 UTC