sindresorhus / p-map

Map over promises concurrently
MIT License
1.27k stars 58 forks source link

Compare with Promise.all() #27

Closed ywave620 closed 4 years ago

ywave620 commented 4 years ago

I think pMap() has the same behavior with the built-in Promise.all(). Am I right? And further more, what is pMap()'s advantage, in other words, why or when we should use pMap() instead of the built-in Promise.all()?

Can anyone answer my question?

Forgive my poor English...

sindresorhus commented 4 years ago

https://github.com/sindresorhus/p-map/commit/76de3060bf80bd904f27d33da3ff814ba149056c