Class: ActiveSupport::Notifications::Fanout::Subscribers::EventObject
Relationships & Source Files | |
Inherits: |
ActiveSupport::Notifications::Fanout::Subscribers::Evented
|
Defined in: | activesupport/lib/active_support/notifications/fanout.rb |
Instance Method Summary
Instance Method Details
#finish(name, id, payload)
[ GitHub ]# File 'activesupport/lib/active_support/notifications/fanout.rb', line 215
def finish(name, id, payload) stack = Thread.current[:_event_stack] event = stack.pop event.payload = payload event.finish! @delegate.call event end
#start(name, id, payload)
[ GitHub ]# File 'activesupport/lib/active_support/notifications/fanout.rb', line 208
def start(name, id, payload) stack = Thread.current[:_event_stack] ||= [] event = build_event name, id, payload event.start! stack.push event end