![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | README.md | 9 years ago | 517 | f12eb36 documentaiton updates [كارل مبارك] |
![]() | example.js | 9 years ago | 359 | |
![]() | index.js | 9 years ago | 2.0K | |
![]() | package.json | 2 years ago | 1.4K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] |
Long timeout makes it possible to have a timeout or interval that is longer than 24.8 days (2^31-1 milliseconds).
var lt = require('long-timeout')
var timeout = lt.setTimeout(function() {
console.log('in 30 days')
}, 1000 * 60 * 60 * 24 * 30)
var interval = lt.setInterval(function() {
console.log('every 30 days')
}, 1000 * 60 * 60 * 24 * 30)
// Clear them
lt.clearTimeout(timeout)
lt.clearInterval(interval)
npm install long-timeout
MIT