long-timeout
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/long-timeout package

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i long-timeout

Weekly Downloads

930,087

Version

0.1.1

License

MIT

Last publish

Collaborators

  • tellnes