mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
13 lines
283 B
CoffeeScript
13 lines
283 B
CoffeeScript
async = require "async"
|
|
Settings = require "settings-sharelatex"
|
|
logger = require("logger-sharelatex")
|
|
queue = async.queue((task, cb)->
|
|
task(cb)
|
|
, Settings.parallelSqlQueryLimit)
|
|
|
|
queue.drain = ()->
|
|
logger.debug('all items have been processed')
|
|
|
|
module.exports =
|
|
queue: queue
|
|
|