Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upTime.every should behave appropriately when the computer goes to sleep #452
Comments
evancz
closed this
May 11, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Hmm, I guess this is till true. Is there a way to solve this in JS? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
avh4
May 12, 2016
Member
setTimeout and setInterval both should fire after the computer wakes if the firing is overdue. Not sure what is going on here, but will debug it more the next time I run into it.
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
avh4 commentedDec 1, 2015
I have a dashboard where some data is updated every hour with
Time.every Time.hour. If the computer goes to sleep shortly after the signal fires, and then is woken more than an hour later, I would expect the signal to fire immediately upon the page being woken, but in this case, the signal will not fire for almost another hour.