instance method
no_wait_poll
Ruby on Rails 5.2.8.1
Since v4.0.13 PrivateSignature
no_wait_poll()
Remove and return the head 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.rb, line 179
def no_wait_poll
remove if can_remove_no_wait?
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionPool::Queue