Class: ActiveSupport::Notifications::Fanout::Subscribers::Timed
- Defined in:
- 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, #matches?, #subscribed_to?, #unsubscribe!
Constructor Details
This class inherits a constructor from ActiveSupport::Notifications::Fanout::Subscribers::Evented
Instance Method Details
#finish(name, id, payload) ⇒ Object
183 184 185 186 187 |
# File 'lib/active_support/notifications/fanout.rb', line 183 def finish(name, id, payload) timestack = Thread.current[:_timestack] started = timestack.pop @delegate.call(name, started, Time.now, id, payload) end |
#publish(name, *args) ⇒ Object
174 175 176 |
# File 'lib/active_support/notifications/fanout.rb', line 174 def publish(name, *args) @delegate.call name, *args end |