coopernurse / node-pool

Generic resource pooling for node.js
2.37k stars 259 forks source link

Throttle giving out objects? #240

Closed nowherenearithaca closed 5 years ago

nowherenearithaca commented 5 years ago

Might seem like a weird question, but was wondering if it's possible to tweak/use this so that it will not give out objects faster than say one every second.

sandfox commented 5 years ago

In theory maybe..? Although I can't tell if tweaking it, or bolting on another layer would be the better road to take. What's the use case you have in mind?