pool
pool copied to clipboard
checkout() should always return value
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 can be checked and value dropped if it will exceed it.