instance method build_handle

Ruby on Rails 8.1.2

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

build_handle(name, id, payload)

No documentation comment.

Parameters

name req
id req
payload req
Source
# File activesupport/lib/active_support/notifications/fanout.rb, line 286
      def build_handle(name, id, payload)
        groups = groups_for(name).map do |group_klass, grouped_listeners|
          group_klass.new(grouped_listeners, name, id, payload)
        end

        if groups.empty?
          NullHandle
        else
          Handle.new(self, name, id, groups, payload)
        end
      end

Defined in activesupport/lib/active_support/notifications/fanout.rb line 286 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Notifications::Fanout

Type at least 2 characters to search.

↑↓ navigate · open · esc close