disposable

0.0.5 • Public • Published
 
var disposable = require("disposable")(),
EventEmitter = require("events").EventEmitter,
em = new EventEmitter();
 
 
disposable.addTimeout(setTimeout(function() {
    
}, 500));
 
disposable.addInterval(setInterval(function() {
    
}, 500));
 
 
disposable.add(em.on("end", function(){}),
em.on("test", function(){}));

Readme

Keywords

none

Package Sidebar

Install

npm i disposable

Weekly Downloads

64

Version

0.0.5

License

none

Last publish

Collaborators

  • architectd
  • crcn