Nothing Precedes Matter

    es6-promise-debounce

    1.0.1 • Public • Published

    es6-promise-debounce

    a debounce function for promises

    example

    var debounce = require('es6-promise-debounce');
    
    var debouncedFunction = debounce(function() {
        return new Promise(function(resolve) {
            resolve();
        });
    }, 200);
    
    debouncedFunction().then(function() { console.log('this one should be ignored'); });
    debouncedFunction().then(function() { console.log('this one should be executed'); });
    

    Install

    npm i es6-promise-debounce

    DownloadsWeekly Downloads

    2,364

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • moszeed