sindresorhus / p-limit

Run multiple promise-returning & async functions with limited concurrency
MIT License
1.84k stars 99 forks source link

Does p-limit support Promise.allSettled? #45

Closed liweixi100 closed 3 years ago

liweixi100 commented 3 years ago

According to https://www.npmjs.com/package/chunk-promise, p-limit does not support Promise.allSettled. Is that true?

sindresorhus commented 3 years ago

That is false. p-limit supports any promise function (Promise.all, Promise.allSettled, etc) as it's just a wrapped promise itself.