Skip to content

Instantly share code, notes, and snippets.

@inneroot
Created November 23, 2021 16:13
Show Gist options
  • Select an option

  • Save inneroot/03dc20a049a13ec3139cb95fa2c4b6fa to your computer and use it in GitHub Desktop.

Select an option

Save inneroot/03dc20a049a13ec3139cb95fa2c4b6fa to your computer and use it in GitHub Desktop.

Revisions

  1. inneroot created this gist Nov 23, 2021.
    6 changes: 6 additions & 0 deletions forAwait.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    async function start() {
    for await (let asyncFunction of asyncFunctions ) {
    console.log(await asyncFunction())
    }
    }
    start();