Class: FastlyNsq::PriorityThreadPool

Inherits:
Concurrent::ThreadPoolExecutor
  • Object
show all
Defined in:
lib/fastly_nsq/priority_thread_pool.rb

Instance Method Summary collapse

Constructor Details

#initializePriorityThreadPool

Returns a new instance of PriorityThreadPool.



6
7
8
9
10
# File 'lib/fastly_nsq/priority_thread_pool.rb', line 6

def initialize(*)
  super

  @queue = FastlyNsq::PriorityQueue.new(:max)
end