Last active
December 2, 2021 22:22
-
-
Save afucher/e604dea0593f7026cef5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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