The max amount of milliseconds you can pass to
A value larger than the one returned from this module, 2147483647 (~25 days), is too big to fit into a signed 32-bit integer, which is how JS engines store it, and will cause overflow, resulting in the timeout being scheduled immediately.
$ npm install --save max-timeout
const maxTimeout = ;;
- delay - Delay a promise a specified amount of time
MIT © Sindre Sorhus