class ActiveSupport::Notifications::Fanout::Subscribers::EventObject
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_support/notifications/fanout.rbs class ActiveSupport::Notifications::Fanout::Subscribers::EventObject < ActiveSupport::Notifications::Fanout::Subscribers::Evented def build_event: (String name, String id, Hash payload) -> untyped def finish: (String name, String id, Hash payload) -> untyped end
def build_event(name, id, payload)
Experimental RBS support (using type sampling data from the type_fusion
project).
def build_event: (String name, String id, identifier | String payload) -> untyped
This signature was generated using 1 sample from 1 application.
def build_event(name, id, payload) ActiveSupport::Notifications::Event.new name, nil, nil, id, payload end
def finish(name, id, payload)
Experimental RBS support (using type sampling data from the type_fusion
project).
def finish: (String name, String id, (sql | String | name | String | binds | ActiveRecord::Relation::QueryAttribute | ActiveRecord::Relation::QueryAttribute | type_casted_binds | String | String | statement_name | String | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | identifier | String | layout | String) payload) -> untyped
This signature was generated using 2 samples from 1 application.
def finish(name, id, payload) stack = IsolatedExecutionState[:_event_stack] event = stack.pop event.payload = payload event.finish! @delegate.call event end
def publish_event(event)
def publish_event(event) @delegate.call event end
def start(name, id, payload)
def start(name, id, payload) stack = IsolatedExecutionState[:_event_stack] ||= [] event = build_event name, id, payload event.start! stack.push event end