instance method
clear
Ruby on Rails 7.2.3
Since v4.0.13Signature
clear()
Remove all elements from the queue.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 52
def clear
synchronize do
@queue.clear
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb line 52
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionPool::Queue