Method: PG::EM::ConnectionPool#size

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

#sizeInteger

Current number of connections in the connection pool

Returns:

  • (Integer)


163
164
165
# File 'lib/pg/em/connection_pool.rb', line 163

def size
  @available.length + @allocated.length
end