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(){}));

/disposable/

    Package Sidebar

    Install

    npm i disposable

    Weekly Downloads

    137

    Version

    0.0.5

    License

    none

    Last publish

    Collaborators

    • architectd
    • crcn