Method: LaunchDarkly::Impl::UnboundedPool#initialize
- Defined in:
- lib/ldclient-rb/impl/unbounded_pool.rb
#initialize(instance_creator, instance_destructor) ⇒ UnboundedPool
Returns a new instance of UnboundedPool.
5 6 7 8 9 10 |
# File 'lib/ldclient-rb/impl/unbounded_pool.rb', line 5 def initialize(instance_creator, instance_destructor) @pool = Array.new @lock = Mutex.new @instance_creator = instance_creator @instance_destructor = instance_destructor end |