Class: Que::Adapters::ConnectionPool

Inherits:
Base
  • Object
show all
Defined in:
lib/que/adapters/connection_pool.rb

Instance Method Summary collapse

Methods inherited from Base

#execute, #in_transaction?, #wake_worker_after_commit

Constructor Details

#initialize(pool) ⇒ ConnectionPool

Returns a new instance of ConnectionPool.



4
5
6
7
# File 'lib/que/adapters/connection_pool.rb', line 4

def initialize(pool)
  @pool = pool
  super
end

Instance Method Details

#checkout(&block) ⇒ Object



9
10
11
# File 'lib/que/adapters/connection_pool.rb', line 9

def checkout(&block)
  @pool.with(&block)
end