long-timeout / 0.1.1 last updated 4 months ago created on Aug 12th 2012

Install

npm install --save long-timeout

Clone

git clone git@github.com:tellnes/long-timeout.git

dependencies

No dependencies listed.

maintainers

tellnes

versions

0.1.1 4 months ago tellnes
0.1.0 4 months ago tellnes
0.0.2 a year ago tellnes
2194 Downloads yesterday.

readme

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

Resolving all dependencies.. This could take a while as our cache is not yet fully warmed up.