mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 23:55:33 -05: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
|
|
|