Skip to content
JavaScript
Branch: master
Clone or download
Latest commit 7a0ef28 Feb 25, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Update README Feb 4, 2016
example.js Add interval support Feb 1, 2016
index.js add `ref` and `unref` Feb 24, 2016
package.json 0.1.1 Feb 24, 2016

README.md

Long timeouts

Long timeout makes it possible to have a timeout or interval that is longer than 24.8 days (2^31-1 milliseconds).

Usage

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)

Install

npm install long-timeout

Licence

MIT

You can’t perform that action at this time.