Class: SandthornSequelProjection::CircularQueue

Inherits:
Queue
  • Object
show all
Defined in:
lib/sandthorn_sequel_projection/runner.rb

Instance Method Summary collapse

Instance Method Details

#popObject

CircularQueue

Automatically pushes popped elements to the back of the queue In other words, can never be emptied by use of pop



55
56
57
58
59
# File 'lib/sandthorn_sequel_projection/runner.rb', line 55

def pop
  super.tap do |el|
    self << el
  end
end