Created
August 12, 2019 03:23
-
-
Save BetterProgramming/3a02c977f2c83b4a1459c488c1aa37d7 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 parallel = async function() { | |
startTime = performance.now(); | |
promisesArray = []; | |
console.log(executingAt()); | |
promisesArray.push(promiseTRSANSG(3)); | |
promisesArray.push(promiseTRSANSG(4)); | |
result = await Promise.all(promisesArray); | |
console.log(result); | |
console.log(executingAt()); | |
} | |
parallel(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment