[MacRuby-devel] [MacRuby] #476: GCD Groups should be a wrapper around dispatch, not its own invocation style

MacRuby ruby-noreply at macosforge.org
Fri Dec 4 10:13:51 PST 2009


#476: GCD Groups should be a wrapper around dispatch, not its own invocation
style
----------------------------------------+-----------------------------------
 Reporter:  ernest.prabhakar@…          |       Owner:  lsansonetti@…        
     Type:  enhancement                 |      Status:  new                  
 Priority:  blocker                     |   Milestone:  MacRuby 0.5          
Component:  MacRuby                     |    Keywords:  gcd                  
----------------------------------------+-----------------------------------

Comment(by ernest.prabhakar@…):

 I'm not sure I'd want to go that far, but I like the idea of passing
 groups -- and even sync -- as named parameters to dispatch (i.e., a hash)

 g = Dispatch::Group.new

 q1.dispatch(group: g) { block }
 q2.dispatch(group: g, sync:true) { block }

 g.wait

 That would seem both the simplest to implement, and the clearest
 semantically.  I'll file a bug about the 'sync' keyword...

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/476#comment:3>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list