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");
    });
}

Readme

Keywords

Package Sidebar

Install

npm i throttle-factory

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • camilin87