Closed gajus closed 6 years ago
Oh, the options is a second parameter.
const {createPool} = require('generic-pool');
const pool = createPool({
create: () => {
console.log('start');
return {};
}
}, {
max: Infinity,
min: 5
});
pool.start();
Please use parameter validation (e.g. https://github.com/webpack/webpack/issues/2971).
I expect this to print "start" 5 times when executed.