|
|
9 年之前 | |
|---|---|---|
| .. | ||
| README.md | 9 年之前 | |
| example.js | 9 年之前 | |
| index.js | 9 年之前 | |
| package.json | 9 年之前 | |
Long timeout makes it possible to have a timeout 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)
// Clear it
lt.clearTimeout(timeout)
npm install long-timeout
MIT