Saturday 29 February 2020

setInterval does not trigger when the os sleeps (electron app)

I am implementing an app using ElectronJs where some subscriptions rely on timers. So, when I use setInterval to trigger a function at a given interval, this does not work if the system is went into sleeping mode during the interval.Is there a way to make it run even while the system is sleeping? Or if this is not possible, is there an alternative to setInterval?

Submitted February 29, 2020 at 06:57PM by oneevening

No comments:

Post a Comment