instance method add_back

Ruby on Rails 8.1.2

Since v8.1.2

Signature

add_back(element)

Add element to the back of the queue. Never blocks.

Parameters

element req
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 44
        def add_back(element)
          synchronize do
            @queue.unshift element
            @cond.signal
          end
        end

Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb line 44 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::ConnectionPool::Queue

Type at least 2 characters to search.

↑↓ navigate · open · esc close