←back to thread

setBigTimeout

(evanhahn.com)
211 points cfj | 1 comments | | HN request time: 0s | source
Show context
miiiiiike ◴[] No.41880787[source]
Got hit with this one a few months ago.
replies(2): >>41880846 #>>41880864 #
graypegg ◴[] No.41880846[source]
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.
replies(2): >>41881134 #>>41916750 #
1. miiiiiike ◴[] No.41916750[source]
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.