Skip to content

Instantly share code, notes, and snippets.

@jwulf
Created March 5, 2020 02:48
Show Gist options
  • Save jwulf/b934f3a0e3551c25ab7aa85fba90ed36 to your computer and use it in GitHub Desktop.
Save jwulf/b934f3a0e3551c25ab7aa85fba90ed36 to your computer and use it in GitHub Desktop.
async function myAsyncFunction(argument) {
let arrayTasks = [
{
const run = async () => {
let response = await getDataAsync();
}
},
{
const run = async () => {
let response = await getDataAsync();
}
}
]
for (const index in arrayTasks) {
await arrayTasks[index].run();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment