Get the latest tech news

setBigTimeout


setTimeout breaks after 25 days. setBigTimeout doesn't.

You provide a timeout, in milliseconds, and a function to call after that time has elapsed. I wrote automated tests that mock the clock, but I didn’t wait 84 years to see if it worked. Give it a try by installing setbigtimeout from npm or checking out the source code.

Get the Android app

Or read this on Hacker News