Method: PG::EM::ConnectionPool#finish

Defined in:
lib/pg/em/connection_pool.rb

#finishObject Also known as: close

Finishes all available connections and clears the available pool.

After call to this method the pool is still usable and will try to allocate new client connections on subsequent query commands.



171
172
173
174
175
# File 'lib/pg/em/connection_pool.rb', line 171

def finish
  @available.each { |c| c.finish }
  @available.clear
  self
end