Skip to content

Instantly share code, notes, and snippets.

@mitchellporter
Created October 4, 2018 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchellporter/e4b6784f8e93ca52df75f67a4a1da59e to your computer and use it in GitHub Desktop.
Save mitchellporter/e4b6784f8e93ca52df75f67a4a1da59e to your computer and use it in GitHub Desktop.
async function test(){
let arr = [1,2,3];
await* arr.map(async (num) => {
let result = await getData(num);
console.log(result);
});
console.log('after foreach');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment