diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-04 10:39:55 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-04 10:39:55 +0100 |
commit | 31248fe3698c8d6c54465dfdf463ea49749e1c33 (patch) | |
tree | 7012bd76a668d741689f9f5eee441f109584d590 /activesupport/lib/active_support/notifications/fanout.rb | |
parent | efa850558facf2fbaaf226f1444802da83924b82 (diff) | |
download | rails-31248fe3698c8d6c54465dfdf463ea49749e1c33.tar.gz rails-31248fe3698c8d6c54465dfdf463ea49749e1c33.tar.bz2 rails-31248fe3698c8d6c54465dfdf463ea49749e1c33.zip |
Remove instrument! and require thread from AS::Notifications.
Diffstat (limited to 'activesupport/lib/active_support/notifications/fanout.rb')
-rw-r--r-- | activesupport/lib/active_support/notifications/fanout.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/notifications/fanout.rb b/activesupport/lib/active_support/notifications/fanout.rb index ac482a2ec8..0ec23da073 100644 --- a/activesupport/lib/active_support/notifications/fanout.rb +++ b/activesupport/lib/active_support/notifications/fanout.rb @@ -1,5 +1,3 @@ -require 'thread' - module ActiveSupport module Notifications # This is a default queue implementation that ships with Notifications. It @@ -21,8 +19,8 @@ module ActiveSupport @subscribers.each { |s| s.publish(*args) } end + # This is a sync queue, so there is not waiting. def wait - sleep(0.05) until @subscribers.all?(&:drained?) end # Used for internal implementation only. |