module ActiveSupport::Notifications

def instrument(name, payload = {})

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

type ActiveSupport__Notifications_instrument_return_value = nil | ActionView::OutputBuffer | Types::Sample | Symbol | ActionView::AbstractRenderer::RenderedTemplate | String

def instrument: (String name, ?Hash payload) -> ActiveSupport__Notifications_instrument_return_value

This signature was generated using 23 samples from 1 application.

def instrument(name, payload = {})
  if notifier.listening?(name)
    instrumenter.instrument(name, payload) { yield payload if block_given? }
  else
    yield payload if block_given?
  end
end