|
|
ruby fizz
>
ResourcePool
|
A generalized resource pool with resource allocation/deallocation based around the Ruby block.
ResourcePool.create('newpool', 2, PoolObject)
# ...
pool = ResourcePool.instance('newpool')
pool.obtain do |r|
# do something with r
end
For documentation, run RDoc after unpacking the archive.
ResourcePool may be used and distributed under the same license as Ruby.