instance method
no_wait_poll
Ruby on Rails 7.2.3
Since v4.0.13 PrivateSignature
no_wait_poll()
Remove and return the head of the queue if the number of available elements is strictly greater than the number of threads currently waiting. Otherwise, return nil.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 106
def no_wait_poll
remove if can_remove_no_wait?
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb line 106
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionPool::Queue