instance method
flush
Ruby on Rails 8.1.2
Since v7.0.10Signature
flush()
No documentation comment.
Source
# File activerecord/lib/active_record/future_result.rb, line 42
def flush
events, @events = @events, []
events.each do |event|
event.payload[:lock_wait] = @future_result.lock_wait
ActiveSupport::Notifications.publish_event(event)
end
end
Defined in activerecord/lib/active_record/future_result.rb line 42
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FutureResult::EventBuffer