mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
14 lines
215 B
CoffeeScript
14 lines
215 B
CoffeeScript
|
async = require "async"
|
||
|
|
||
|
queue = async.queue((task, cb)->
|
||
|
console.log("running task")
|
||
|
task(cb)
|
||
|
, 1)
|
||
|
|
||
|
queue.drain = ()->
|
||
|
console.log('HI all items have been processed')
|
||
|
|
||
|
module.exports =
|
||
|
queue: queue
|
||
|
|