Permalink
Browse files

documenting concurrency rules for the Fanout class

  • Loading branch information...
1 parent 644a179 commit 0b38152195325e35025f483896b8676aeb0442b1 @tenderlove tenderlove committed Jun 19, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 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 = []

0 comments on commit 0b38152

Please sign in to comment.