Class: Que::Adapters::Sequel
Instance Method Summary collapse
- #checkout(&block) ⇒ Object
-
#initialize(db) ⇒ Sequel
constructor
A new instance of Sequel.
Methods inherited from Base
Constructor Details
#initialize(db) ⇒ Sequel
Returns a new instance of Sequel.
4 5 6 7 |
# File 'lib/que/adapters/sequel.rb', line 4 def initialize(db) @db = db super end |
Instance Method Details
#checkout(&block) ⇒ Object
9 10 11 |
# File 'lib/que/adapters/sequel.rb', line 9 def checkout(&block) @db.synchronize(&block) end |