Class: ActiveSupport::Notifications::Fanout::Subscribers::Timed
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/notifications/fanout.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Evented
Instance Method Summary collapse
- #finish(name, id, payload) ⇒ Object
- #publish(name, *args) ⇒ Object
- #start(name, id, payload) ⇒ Object
Methods inherited from Evented
#initialize, #publish_event, #subscribed_to?, #unsubscribe!
Constructor Details
This class inherits a constructor from ActiveSupport::Notifications::Fanout::Subscribers::Evented
Instance Method Details
#finish(name, id, payload) ⇒ Object
233 234 235 236 237 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/notifications/fanout.rb', line 233 def finish(name, id, payload) timestack = IsolatedExecutionState[:_timestack] started = timestack.pop @delegate.call(name, started, Time.now, id, payload) end |
#publish(name, *args) ⇒ Object
224 225 226 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/notifications/fanout.rb', line 224 def publish(name, *args) @delegate.call name, *args end |
#start(name, id, payload) ⇒ Object
228 229 230 231 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/notifications/fanout.rb', line 228 def start(name, id, payload) timestack = IsolatedExecutionState[:_timestack] ||= [] timestack.push Time.now end |