instance method
clear
Ruby on Rails 8.1.2
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 59
def clear
synchronize do
@queue.clear
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb line 59
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionPool::Queue