pool
pool copied to clipboard
A pool of reusable values
this should fix #9
I see this project is not very active, unfortunately. Anyway, we use it in some internal project and I've discovered and fixed a bug more than a year ago. Noticed...
On certain usage patterns it might be more suitable to reset the values of the encapsulated data during checkin (When `Checkout::drop()` is executed) instead of during checkout.
It would be more ergonomic if checkout always returned value (as that's what will be done anyway when it currently returns None). When value is returned to the pool, capacity...