long-timeout
Long timeout makes it possible to have a timeout or interval that is longer than 24.8 days (2^31-1 milliseconds).
Last updated 10 years ago by tellnes .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install long-timeout 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.1                                ...           latest (10 years ago)

4 Versions

  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |