Skip to content
This repository
Browse code

documenting concurrency rules for the Fanout class

  • Loading branch information...
commit 0b38152195325e35025f483896b8676aeb0442b1 1 parent 644a179
Aaron Patterson authored June 19, 2012
3  activesupport/lib/active_support/notifications/fanout.rb
@@ -2,6 +2,9 @@ module ActiveSupport
2 2
   module Notifications
3 3
     # This is a default queue implementation that ships with Notifications.
4 4
     # It just pushes events to all registered log subscribers.
  5
+    #
  6
+    # Only one of these objects should instantiated per thread.  Concurrent
  7
+    # access to this class is not allowed.
5 8
     class Fanout
6 9
       def initialize
7 10
         @subscribers = []

0 notes on commit 0b38152

Please sign in to comment.
Something went wrong with that request. Please try again.