This code snippet is different from my previous one: A performant async queue. Even if it works quite the same way.
The big difference is that it runs functions after some wait time, instead of waiting some time after functions have finished to run.
There's also an NPM package: dumb-limiter.
Top comments (0)