Method: Mongo::Server::ConnectionPool#initialize
- Defined in:
- lib/mongo/server/connection_pool.rb
#initialize(options = {}, &block) ⇒ ConnectionPool
Note:
A block must be passed to set up the connections on initialization.
Create the new connection pool.
78 79 80 81 |
# File 'lib/mongo/server/connection_pool.rb', line 78 def initialize( = {}, &block) @options = .freeze @queue = Queue.new(, &block) end |