Newton's Poleless Magnet

    throttle-factory

    1.0.0 • Public • Published

    throttle-factory

    Build Status

    Another library to throttle calls. Seamlessly throttle calls.

    var throttleFactory = require("throttle-factory");
    var throttle = throttleFactory(10, 1000);
     
    // these 100 calls will take 10 seconds
    for (var i = 0; i < 100; i++) {
        throttle.execute(() => {
            console.log("do something");
        });
    }

    Install

    npm i throttle-factory

    DownloadsWeekly Downloads

    4

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • camilin87