any_waiting?()
Test if any threads are currently waiting on the queue.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 22 def any_waiting? synchronize do @num_waiting > 0 end end