timeouts

0.0.1 • Public • Published

timeouts

trying to make it easier to clean up timeouts

Install

npm install timeouts

Usage

var Timeouts = require('timeouts')
 
var timeouts = Timeouts()
 
var tid1 = timeouts.timeout(function() {
  console.log('yo')
}, 1000)
 
var tid2 = timeouts.timeout(function() {
  console.log('not yo')
}, 1000)
 
timeouts.clear(tid1) // clear one timeout
timeouts.clearAll() // clear all timeouts created by this instance

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i timeouts

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • spwilko
  • genevayngrib
  • pgmemk
  • tenaciousmv