Skip to content

Instantly share code, notes, and snippets.

@afucher
Last active December 2, 2021 22:22
Show Gist options
  • Save afucher/e604dea0593f7026cef5 to your computer and use it in GitHub Desktop.
Save afucher/e604dea0593f7026cef5 to your computer and use it in GitHub Desktop.
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