Closed iccicci closed 1 week ago
Apart from when it is used to gather stats, pLimiter is always used with pLimiter.add(task, { throwOnTimeout: true }).
pLimiter
pLimiter.add(task, { throwOnTimeout: true })
This PR add the limiter utility to remove this code repetition also increasing a bit the readability.
limiter
Apart from when it is used to gather stats,
pLimiter
is always used withpLimiter.add(task, { throwOnTimeout: true })
.This PR add the
limiter
utility to remove this code repetition also increasing a bit the readability.