coopernurse / node-pool

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

Is it possible to pass extra arguments validate method of the factory. #271

Open PavanBahuguni opened 4 years ago

PavanBahuguni commented 4 years ago

I have a scenario where my validation needs to happen at runtime based on some user input. I can see that validate method is triggered every time we acquire a resource. Is there a way to pass extra arguments to validate method? I see acquire takes only one parameter that is priority.