From 0b38152195325e35025f483896b8676aeb0442b1 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 19 Jun 2012 10:33:32 -0700 Subject: documenting concurrency rules for the Fanout class --- activesupport/lib/active_support/notifications/fanout.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activesupport') 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 = [] -- cgit v1.2.3