- From: Giorgi Lagidze <notifications@github.com>
- Date: Thu, 07 May 2020 02:13:53 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 7 May 2020 09:14:05 UTC
@jakearchibald What if I want to run function(which checks indexeddb and if it finds the record in there, makes a fetch request to api endpoint) every 30 minutes. The logical way to write this is to use `setInterval` in the global scope of service worker. Would this be unreliable? even if service worker gets killed by browser and boots up again, `setInterval` would start again since it's in global scope. Any downside or risk you can think of ? -- 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/838#issuecomment-625132152
Received on Thursday, 7 May 2020 09:14:05 UTC