Class: Que::Adapters::ConnectionPool
- Defined in:
- lib/que/adapters/connection_pool.rb
Instance Method Summary collapse
- #checkout(&block) ⇒ Object
-
#initialize(pool) ⇒ ConnectionPool
constructor
A new instance of ConnectionPool.
Methods inherited from Base
#cleanup!, #execute, #in_transaction?, #wake_worker_after_commit
Constructor Details
#initialize(pool) ⇒ ConnectionPool
Returns a new instance of ConnectionPool.
6 7 8 9 |
# File 'lib/que/adapters/connection_pool.rb', line 6 def initialize(pool) @pool = pool super end |
Instance Method Details
#checkout(&block) ⇒ Object
11 12 13 |
# File 'lib/que/adapters/connection_pool.rb', line 11 def checkout(&block) @pool.with(&block) end |