pool
pool copied to clipboard
Added createPoolWithMaxReuseCount
Add max reuse count for createPool. When reuse count reaches maxReuseCount, reaper destroys the resource. It is usefull to avoid resource leak.
Hi,
If you have time, could you see this? I would appreciate it if I could receive a comment from you. How do you think this patch?
Hi, I was looking for a pool that would close resources after they have been used a certain number of times. This is useful when your resources grow larger as they are being used (with or without any memory leaks). I would look forward to seeing such functionality being available in a mainstream pool package.