Spaces:
Paused
Paused
File size: 187 Bytes
22588bc | 1 2 3 4 5 6 7 8 | const async = require('async');
const queue = async.queue((task, callback) => {
task.fn().then(callback).catch(callback);
}, 45); // 45 requests per second
module.exports = queue;
|