throttle-factory
1.0.0 • Public • Published throttle-factory
Another library to throttle calls. Seamlessly throttle calls.
var throttleFactory = require("throttle-factory");
var throttle = throttleFactory(10, 1000);
for (var i = 0; i < 100; i++) {
throttle.execute(() => {
console.log("do something");
});
}
Package Sidebar
Install
Weekly Downloads