Changed the sleeping_barber example to comply with the new GCD API.
--- MacRuby/trunk/sample-macruby/Scripts/gcd/sleeping_barber.rb 2009-12-22 23:07:23 UTC (rev 3150)
+++ MacRuby/trunk/sample-macruby/Scripts/gcd/sleeping_barber.rb 2009-12-22 23:07:31 UTC (rev 3151)
@@ -12,7 +12,7 @@
puts "Customer turned away #{index}"
next
end
- waiting_chairs.dispatch do
+ waiting_chairs.async do
semaphore.signal
puts "Shave and a haircut #{index}"
end