method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Queue
new(lock = Monitor.new) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 14
        def initialize(lock = Monitor.new)
          @lock = lock
          @cond = @lock.new_cond
          @num_waiting = 0
          @queue = []
        end
Register or log in to add new notes.