method
unsubscribe
v4.0.2 -
Show latest stable
- Class:
ActiveSupport::Notifications::Fanout
unsubscribe(subscriber)public
No documentation available.
# File activesupport/lib/active_support/notifications/fanout.rb, line 28
def unsubscribe(subscriber)
synchronize do
@subscribers.reject! { |s| s.matches?(subscriber) }
@listeners_for.clear
end
end