Skip to content

Instantly share code, notes, and snippets.

@aidanbon
Created April 16, 2018 01:31
Show Gist options
  • Save aidanbon/1c83a73d547d84c045e2343a4a4ea575 to your computer and use it in GitHub Desktop.
Save aidanbon/1c83a73d547d84c045e2343a4a4ea575 to your computer and use it in GitHub Desktop.
sequentialExecutor
async function sequentialExecutor(arr) {
const resArr = []
for (const func of arr) {
const res = await func()
resArr.push(res)
}
return resArr
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment