Y
Hacker News
new
|
ask
|
show
|
jobs
by
Kayou
235 days ago
If you're going to use a lib like pLimit to limit the concurrency of a map, just use pMap which accepts an argument to limit the concurrency and makes it more readable and straightforward
https://github.com/sindresorhus/p-map?tab=readme-ov-file#usa...