class method self.record_subscriptions

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

self.record_subscriptions()

Snapshot subscriptions so a Ractor can restore them onto its own notifier. Skipped for notifiers that don’t opt into the protocol.

Source
# File activesupport/lib/active_support/notifications.rb, line 357
        def record_subscriptions
          return unless notifier.respond_to?(:to_ractor_snapshot)
          self.notifier_subscriptions = ActiveSupport::Ractors.try_make_shareable(
            notifier.to_ractor_snapshot, copy: true
          )
        end

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

Defined in ActiveSupport::Notifications

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close