coopernurse / node-pool

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

Pool does not maintain the minimum #305

Closed mattfysh closed 1 year ago

mattfysh commented 1 year ago

When I create a pool with a minimum, and a resource is acquired, should the library then create a new resource to rectify the deficit and ensure a minimum number of available resources, i.e. the number that can be acquire()'d?

https://stackblitz.com/edit/stackblitz-starters-vzhgfi?file=index.js

mattfysh commented 1 year ago

Found lightning-pool where you can set a minIdle