lib/polyphony/adapters/sequel.rb
# Holds a connection from the pool, passing it to the given block.
#
# @return [any] block's return value
Holds a connection from the pool, passing it to the given block.
Holds a connection from the pool passing it to the given block .
def hold(_server = nil)
      @pool.acquire do |conn|
        yield conn
      rescue Polyphony::BaseException
        @pool.discard!
        raise
      end
    end
def hold ( _server = nil ) @pool . acquire do | conn | yield conn rescue Polyphony :: BaseException @pool . discard! raise end end
Holds a connection from the pool, passing it to the given block.
Holds a connection from the pool passing it to the given block .
# The connection may be in an unrecoverable state if interrupted, # discard the connection from the pool so it isn't reused.
block's return value
block ' s return value
any
_server
<not_specific>