class ActiveSupport::Notifications::Fanout::Subscribers::Evented

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/active_support/notifications/fanout.rbs

class ActiveSupport::Notifications::Fanout::Subscribers::Evented
  def finish: (String name, String id, Hash payload) -> (Integer | nil | Array[RorVsWild::Section])
  def initialize: (String pattern, (ActionView::LogSubscriber | ActiveJob::LogSubscriber) delegate) -> void
  def start: (String name, String id, Hash payload) -> (nil | RorVsWild::Section | Array[ActiveSupport::Notifications::Event])
end

:nodoc:

def finish(name, id, payload)

Experimental RBS support (using type sampling data from the type_fusion project).

type ActiveSupport__Notifications__Fanout__Subscribers__Evented_finish_payload = identifier | String | layout | NilClass | cache_hit | NilClass | sql | String | name | String | binds |  | type_casted_binds |  | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | identifier | String | layout | String | sql | String | name | String | binds | ActiveRecord::Relation::QueryAttribute | ActiveRecord::Relation::QueryAttribute | type_casted_binds | String | String | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | sql | String | name | String | binds | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | type_casted_binds | String | String | String | String | String | String | String | String | String | String | NilClass | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | controller | String | action | String | request | ActionDispatch::Request | params | q | String | controller | String | action | String | gem | String | version | String | headers | ActionDispatch::Http::Headers | format | Symbol | method | String | path | String | response | ActionDispatch::Response | status | Integer | view_runtime | Float | db_runtime | Integer | sql | String | name | String | binds | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | type_casted_binds | String | String | String | String | String | String | String | String | String | String | String | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | sql | String | name | NilClass | binds |  | type_casted_binds |  | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::SQLite3Adapter | sql | String | name | String | binds |  | type_casted_binds |  | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::SQLite3Adapter
type ActiveSupport__Notifications__Fanout__Subscribers__Evented_finish_return_value = Integer | nil | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section | RorVsWild::Section

def finish: (String name, String id, ActiveSupport__Notifications__Fanout__Subscribers__Evented_finish_payload payload) -> ActiveSupport__Notifications__Fanout__Subscribers__Evented_finish_return_value

This signature was generated using 104 samples from 2 applications.

def finish(name, id, payload)
  @delegate.finish name, id, payload
end

def initialize(pattern, delegate)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (String pattern, (ActionView::LogSubscriber | ActiveJob::LogSubscriber) delegate) -> void

This signature was generated using 11 samples from 1 application.

def initialize(pattern, delegate)
  @pattern = Matcher.wrap(pattern)
  @delegate = delegate
  @can_publish = delegate.respond_to?(:publish)
  @can_publish_event = delegate.respond_to?(:publish_event)
end

def publish(name, *args)

def publish(name, *args)
  if @can_publish
    @delegate.publish name, *args
  end
end

def publish_event(event)

def publish_event(event)
  if @can_publish_event
    @delegate.publish_event event
  else
    publish(event.name, event.time, event.end, event.transaction_id, event.payload)
  end
end

def start(name, id, payload)

Experimental RBS support (using type sampling data from the type_fusion project).

type ActiveSupport__Notifications__Fanout__Subscribers__Evented_start_payload = sql | String | name | String | binds |  | type_casted_binds |  | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | sql | String | name | String | binds | ActiveRecord::Relation::QueryAttribute | ActiveRecord::Relation::QueryAttribute | type_casted_binds | String | String | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | identifier | String | layout | NilClass | adapter | ActiveJob::QueueAdapters::AsyncAdapter | job | Types::SampleJob | sql | String | name | String | binds | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | type_casted_binds | String | String | String | String | String | String | String | String | String | String | String | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | sql | String | name | String | binds | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::FromUser | type_casted_binds | String | String | String | String | String | String | String | String | String | String | NilClass | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | controller | String | action | String | request | ActionDispatch::Request | params | controller | String | action | String | gem | String | version | String | headers | ActionDispatch::Http::Headers | format | Symbol | method | String | path | String | identifier | String | sql | String | name | String | binds |  | type_casted_binds |  | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::SQLite3Adapter | identifier | String | layout | String
type ActiveSupport__Notifications__Fanout__Subscribers__Evented_start_return_value = nil | RorVsWild::Section |  | ActiveSupport::Notifications::Event | ActiveSupport::Notifications::Event | ActiveSupport::Notifications::Event | ActiveSupport::Notifications::Event | ActiveSupport::Notifications::Event | ActiveSupport::Notifications::Event

def start: (String name, String id, ActiveSupport__Notifications__Fanout__Subscribers__Evented_start_payload payload) -> ActiveSupport__Notifications__Fanout__Subscribers__Evented_start_return_value

This signature was generated using 101 samples from 2 applications.

def start(name, id, payload)
  @delegate.start name, id, payload
end

def subscribed_to?(name)

def subscribed_to?(name)
  pattern === name
end

def unsubscribe!(name)

def unsubscribe!(name)
  pattern.unsubscribe!(name)
end