Skip to content

Instantly share code, notes, and snippets.

@afucher

afucher/async_param.js

Last active Aug 25, 2015
Embed
What would you like to do?
var async = require('async');
function copyFileToStructure(filename, done){
async.parallel([
async.apply(teste, filename , 'param'),
async.apply(teste, filename , 'param')
], function(result) {
console.log("poa");
console.log(done);
done();
});
}
var teste = function(var01, var02, cb){
console.log("teste");
cb(null);
}
var opa = function(){
console.log('opa');
}
copyFileToStructure('01', opa);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment