random-test / src /utils /queue.js
mikmc's picture
Upload 16 files
22588bc verified
Raw History Blame Contribute Delete
187 Bytes
const async = require('async');
const queue = async.queue((task, callback) => {
task.fn().then(callback).catch(callback);
}, 45); // 45 requests per second
module.exports = queue;