New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time.every should behave appropriately when the computer goes to sleep #452

Closed
avh4 opened this Issue Dec 1, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@avh4
Member

avh4 commented Dec 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.

@evancz evancz closed this May 11, 2016

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz May 11, 2016

Member

Hmm, I guess this is till true. Is there a way to solve this in JS?

Member

evancz commented May 11, 2016

Hmm, I guess this is till true. Is there a way to solve this in JS?

@avh4

This comment has been minimized.

Show comment
Hide comment
@avh4

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.

Member

avh4 commented May 12, 2016

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