mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 10:03:10 +00:00
13 lines
251 B
CoffeeScript
13 lines
251 B
CoffeeScript
async = require "async"
|
|
Settings = require "settings-sharelatex"
|
|
|
|
queue = async.queue((task, cb)->
|
|
task(cb)
|
|
, Settings.parallelSqlQueryLimit)
|
|
|
|
queue.drain = ()->
|
|
console.log('HI all items have been processed')
|
|
|
|
module.exports =
|
|
queue: queue
|
|
|