class ActiveRecord::ConnectionAdapters::ConnectionPool::Queue

def no_wait_poll

threads currently waiting. Otherwise, return +nil+.
available elements is strictly greater than the number of
Remove and return the head of the queue if the number of
def no_wait_poll
  remove if can_remove_no_wait?
end