I have a use case where I have a function that mustn't be running more than x times concurrently because of API restrictions.
I propose the addition of the named export:
function pLimitFunction(function_, concurrency) {
const limit = pLimit(concurrency);
return (...arguments_) => limit(() => function_(...arguments_));
}
This is similar to #74, except we also define the limiter within the function.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too