lib/never_block/pool/fibered_connection_pool.rb
# If a connection is available,
# pass it to the block, otherwise 
# pass the fiber to the queue
# till a connection is available
# when done with a connection
# try to porcess other fibers in the queue
# before releasing the connection
# if inside a transaction, don't release the fiber
If a connection is available,
pass it to the block, otherwise
pass the fiber to the queue
till a connection is available
when done with a connection
try to porcess other fibers in the queue
before releasing the connection
if inside a transaction, don't release the fiber
If a connection is available pass it to the block otherwise pass the fiber to the queue till a connection is available when done with a connection try to porcess other fibers in the queue before releasing the connection if inside a transaction don ' t release the fiber
def hold(transactional = false)
			  fiber = Fiber.current
			  if conn = @busy_connections[fiber]
			    return yield(conn)
			  end
			  conn = acquire(fiber)
			  begin
			    yield conn
			  ensure
			    release(fiber, conn) unless transactional
					process_queue 
			  end
			end
def hold ( transactional = false ) fiber = Fiber . current if conn = @busy_connections [ fiber ] return yield ( conn ) end conn = acquire ( fiber ) begin yield conn ensure release ( fiber , conn ) unless transactional process_queue end end
If a connection is available,
pass it to the block, otherwise
pass the fiber to the queue
till a connection is available
when done with a connection
try to porcess other fibers in the queue
before releasing the connection
if inside a transaction, don't release the fiber
If a connection is available pass it to the block otherwise pass the fiber to the queue till a connection is available when done with a connection try to porcess other fibers in the queue before releasing the connection if inside a transaction don ' t release the fiber
transactional
<not_specific>