Method: LaunchDarkly::Impl::UnboundedPool#acquire
- Defined in:
- lib/ldclient-rb/impl/unbounded_pool.rb
#acquire ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/ldclient-rb/impl/unbounded_pool.rb', line 12 def acquire @lock.synchronize { if @pool.length == 0 @instance_creator.call() else @pool.pop() end } end |