Class: Rails::Queue::SynchronousQueue

Inherits:
Queue
  • Object
show all
Defined in:
lib/rails/queue/queue.rb

Instance Attribute Summary

Attributes inherited from Queue

#consumer

Instance Method Summary collapse

Methods inherited from Queue

#drain, #initialize

Constructor Details

This class inherits a constructor from Rails::Queue::Queue

Instance Method Details

#push(job) ⇒ Object Also known as: <<, enq



33
34
35
# File 'lib/rails/queue/queue.rb', line 33

def push(job)
  super.tap { drain }
end