6 ms·
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 r
by Kayou 11mo 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#usage https://github.com/sindresorhus/p-map?tab=readme-ov-file#usa...