class ActiveSupport::Notifications::Fanout::Handle

def ensure_state!(expected)

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

def ensure_state!: (Symbol expected) -> nil

This signature was generated using 2 samples from 1 application.

def ensure_state!(expected)
  if @state != expected
    raise ArgumentError, "expected state to be #{expected.inspect} but was #{@state.inspect}"
  end
end