Skip to content

Instantly share code, notes, and snippets.

@msuarz
Created May 11, 2012 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msuarz/2657003 to your computer and use it in GitHub Desktop.
Save msuarz/2657003 to your computer and use it in GitHub Desktop.
async queue
exports.benchmark = (user_options) ->
start user_options
queue = async.queue run, options.workers
queue.drain = finish
queue.push i for i in [1..options.runs]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment