Created
November 23, 2021 16:13
-
-
Save inneroot/03dc20a049a13ec3139cb95fa2c4b6fa to your computer and use it in GitHub Desktop.
for await loop javascript
This file contains hidden or 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
async function start() { | |
for await (let asyncFunction of asyncFunctions ) { | |
console.log(await asyncFunction()) | |
} | |
} | |
start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment