resource-pool
A generic thread-safe resource pool implementation for Python.
Installation
pip install resource_pool
Usage
from resource_pool import Pool
pool = Pool(factory=lambda: 42, pool_size=30)
with pool.reserve(timeout=10) as n:
print(n)
License
resource_pool is licensed under Apache 2.0. Please see LICENSE for licensing details.