Closed iccicci closed 6 days 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
This takes the place of #265, closed by error.
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.This takes the place of #265, closed by error.