[macruby-changes] [3544] MacRuby/trunk/lib/dispatch/group.rb
source_changes at macosforge.org
source_changes at macosforge.org
Mon Feb 15 17:30:44 PST 2010
Revision: 3544
http://trac.macosforge.org/projects/ruby/changeset/3544
Author: ernest.prabhakar at gmail.com
Date: 2010-02-15 17:30:44 -0800 (Mon, 15 Feb 2010)
Log Message:
-----------
Pass Dispatch#join spec
Modified Paths:
--------------
MacRuby/trunk/lib/dispatch/group.rb
Modified: MacRuby/trunk/lib/dispatch/group.rb
===================================================================
--- MacRuby/trunk/lib/dispatch/group.rb 2010-02-16 01:30:34 UTC (rev 3543)
+++ MacRuby/trunk/lib/dispatch/group.rb 2010-02-16 01:30:44 UTC (rev 3544)
@@ -10,9 +10,9 @@
# Waits for the group to complete
# If a block is specified, call on the specified queue or priority, if any
def join(queue = Dispatch::Queue.concurrent, &block)
- return group.wait if block.nil?
+ return wait if block.nil?
queue = Dispatch::Queue.concurrent(queue) if not queue.is_a? Dispatch::Queue #i.e., a priority
- group.notify(queue) { block.call }
+ notify(queue) { block.call }
end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100215/d10c5c15/attachment-0001.html>
More information about the macruby-changes
mailing list