node-pool
node-pool copied to clipboard
Allow unlimited maximum
Is there any reason why the pool size can't be unlimited? The default is 1 and setting to Infinity causes pool.fill to fail with:
Error: Maximum count of objects exceeded.
I'm using the pool for it's "recyclation features" rather than for limiting the count of objects. My current hotfix is setting max to Number.MAX_SAFE_INTEGER.