Pooya Parsa
1 min readOct 5, 2017

--

Another approach using `map` instead of `forEach`

const start = async () => {
await Promise.all([1, 2, 3].map(async num => {
await waitFor(50)
console.log(num)
})))
console.log('Done')
}
start()

Ready to use package for parallel and sequential versions:

https://github.com/pi0/items-promise

--

--