diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-06-19 10:33:32 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-06-19 10:37:50 -0700 |
commit | 0b38152195325e35025f483896b8676aeb0442b1 (patch) | |
tree | a99908fcc5849514da5b4e9af68db2f91b6d726d /activesupport/lib/active_support/notifications | |
parent | 644a1796c67ed4d55e2d2ae7182a6a020350f13c (diff) | |
download | rails-0b38152195325e35025f483896b8676aeb0442b1.tar.gz rails-0b38152195325e35025f483896b8676aeb0442b1.tar.bz2 rails-0b38152195325e35025f483896b8676aeb0442b1.zip |
documenting concurrency rules for the Fanout class
Diffstat (limited to 'activesupport/lib/active_support/notifications')
-rw-r--r-- | activesupport/lib/active_support/notifications/fanout.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/notifications/fanout.rb b/activesupport/lib/active_support/notifications/fanout.rb index 17c99089c1..343bf478a3 100644 --- a/activesupport/lib/active_support/notifications/fanout.rb +++ b/activesupport/lib/active_support/notifications/fanout.rb @@ -2,6 +2,9 @@ module ActiveSupport module Notifications # This is a default queue implementation that ships with Notifications. # It just pushes events to all registered log subscribers. + # + # Only one of these objects should instantiated per thread. Concurrent + # access to this class is not allowed. class Fanout def initialize @subscribers = [] |