class ConnectionPool::TimedStack

def shutdown_connections(options = nil)

This method must shut down all connections on the stack.

This is an extension point for TimedStack and is called with a mutex.
#
def shutdown_connections(options = nil)
  while (conn = try_fetch_connection(options))
    @created -= 1 unless @created == 0
    @shutdown_block.call(conn)
  end
end