News for hackers. Stuff that matters.
Re:SetBigTimeout by graypegg on Friday October 18, 2024 @12:19PM (#41880846)
Just out of curiosity, what was the use case for a really long timeout? Feels like most if not all long timeouts would be best served with some sort of "job" you could persist, rather than leaving it in the event queue.
Re:SetBigTimeout by cout on Friday October 18, 2024 @12:45PM (#41881134)
Re:SetBigTimeout by graypegg on Friday October 18, 2024 @12:53PM (#41881210)
To be fair, this will be fixed by browsers when it's within spitting distance of the scale of numbers setTimeout is normally used with. (not huge numbers) Like, if it's close enough that setTimeout(() => {}, 5000) will stop working a month later, that would be a major failure on the browser vendor's part. Much too close for comfort.

But I totally understand it not being a priority if the situation is: setTimeout(() => {}, 500000000) not working in X years.

Re:SetBigTimeout by miiiiiike on Tuesday October 22, 2024 @01:45PM (#41916750)
Nice to have bit of client side auth code. A timer is set to update your auth status when the refresh token is scheduled to expired. I've left tabs open for 30+ days.