Permalink
Browse files

warns against using temporary subscribers

  • Loading branch information...
1 parent 700f778 commit 01c1127461c92be881b0a7278794ea759a0b8558 @fxn fxn committed Jan 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 activesupport/lib/active_support/notifications.rb
@@ -68,6 +68,10 @@ module ActiveSupport
# Sometimes you do not want to subscribe to an event for the entire life of
# the application. There are two ways to unsubscribe.
#
+ # WARNING: The instrumentation framework is designed for long-running subscribers,
+ # use this feature sparingly because it wipes some internal caches and that has
+ # a negative impact on performance.
+ #
# === Subscribe While a Block Runs
#
# You can subscribe to some event temporarily while some block runs. For

0 comments on commit 01c1127

Please sign in to comment.