Class: Brute::Queue::SequentialQueue

Inherits:
BaseQueue
  • Object
show all
Defined in:
lib/brute/queue/sequential_queue.rb

Overview

A queue that processes steps one at a time, in order. One worker, one concurrency slot.

Instance Attribute Summary

Attributes inherited from BaseQueue

#steps

Instance Method Summary collapse

Methods inherited from BaseQueue

#<<, #cancel, #drain, #first, #last, #start

Constructor Details

#initialize(parent: Async::Task.current) ⇒ SequentialQueue

Returns a new instance of SequentialQueue.



11
12
13
# File 'lib/brute/queue/sequential_queue.rb', line 11

def initialize(parent: Async::Task.current)
  super(concurrency: 1, worker_count: 1, parent: parent)
end