[MacRuby-devel] some gcd issues

B. Ohr jazzbox at 7zz.de
Fri Jun 4 23:38:39 PDT 2010


Hi Ernest,

Am 04.06.2010 um 19:03 schrieb Ernest N. Prabhakar, Ph.D.:

> Hmm, you should NOT need to call "group" on the @job for normal usage.  
> 
> Could you just use "@job.join" to get the behavior you want?
> 

Thanks, I am using join now!

Unfortunately join is crashing too with the main queue (Dispatch::Queue.concurrent is working):

$ macruby -r dispatch -e 'Dispatch::Job.new {sleep 1}.join(Dispatch::Queue.main) {puts "!"}'
/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/1.9.0/dispatch/job.rb:29:in `join:': expected Queue object, but got Dispatch::Queue (ArgumentError)
	from /Developer/Examples/Ruby/MacRuby/Scripts/-e:1:in `<main>’

- Bernd


More information about the MacRuby-devel mailing list