[macruby-changes] [4351] MacRuby/trunk/lib/dispatch/README.rdoc

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 13 15:37:03 PDT 2010


Revision: 4351
          http://trac.macosforge.org/projects/ruby/changeset/4351
Author:   ernest.prabhakar at gmail.com
Date:     2010-07-13 15:37:02 -0700 (Tue, 13 Jul 2010)
Log Message:
-----------
Change dispatch README to use Queue.new

Modified Paths:
--------------
    MacRuby/trunk/lib/dispatch/README.rdoc

Modified: MacRuby/trunk/lib/dispatch/README.rdoc
===================================================================
--- MacRuby/trunk/lib/dispatch/README.rdoc	2010-07-13 22:37:01 UTC (rev 4350)
+++ MacRuby/trunk/lib/dispatch/README.rdoc	2010-07-13 22:37:02 UTC (rev 4351)
@@ -283,12 +283,12 @@
 
 Most of the time, you can simply use GCD's default concurrent queues or the built-in queues associated with synchronized objects.  However, if you want more precise control you can create and use your own queues.
 
-=== Queue::for
+=== Queue::new
 
-The simplest way to create a queue is by passing in the object you want the queue +for+
+The simplest way to create a +new+ queue is by passing it a meaningful name, typically using reverse-DNS naming:
 
 	puts
-	puts q = Dispatch::Queue.for("my_object")
+	puts q = Dispatch::Queue.new("org.macruby.queue.example")
 
 === Queue#sync
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100713/e336e875/attachment.html>


More information about the macruby-changes mailing list