Skip to content

Instantly share code, notes, and snippets.

@robertklep
Last active December 18, 2015 05:19
Show Gist options
  • Save robertklep/5732354 to your computer and use it in GitHub Desktop.
Save robertklep/5732354 to your computer and use it in GitHub Desktop.
var async = require('async');
var locals = [];
var test = function(value, locals, done) {
console.log('value', value, 'locals', locals);
locals.push(value);
done();
};
async.series([
test.bind(null, 'this is #1', locals),
test.bind(null, 'this is #2', locals),
test.bind(null, 'this is #3', locals)
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment