mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 05:12:25 +00:00
18 lines
612 B
JavaScript
18 lines
612 B
JavaScript
// TODO: This file was created by bulk-decaffeinate.
|
|
// Sanity-check the conversion and remove this comment.
|
|
/*
|
|
* decaffeinate suggestions:
|
|
* DS102: Remove unnecessary code created because of implicit returns
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
*/
|
|
const async = require('async')
|
|
const Settings = require('settings-sharelatex')
|
|
const logger = require('logger-sharelatex')
|
|
const queue = async.queue(
|
|
(task, cb) => task(cb),
|
|
Settings.parallelSqlQueryLimit
|
|
)
|
|
|
|
queue.drain = () => logger.debug('all items have been processed')
|
|
|
|
module.exports = { queue }
|