]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/concurrency/count-downs/count-downs-docs.factor
core, basis, extra: Remove DOS line endings from files.
[factor.git] / basis / concurrency / count-downs / count-downs-docs.factor
index 29c90bcdd5fee53f28198f3cfe76ce9ece9f3aac..8d9a64f59d6ab74f817a242c28e8ec062fc6ae6a 100644 (file)
@@ -1,27 +1,27 @@
-USING: help.markup help.syntax sequences ;\r
-IN: concurrency.count-downs\r
-\r
-HELP: <count-down>\r
-{ $values { "n" "a non-negative integer" } { "count-down" count-down } }\r
-{ $description "Creates a new count-down latch." } \r
-{ $errors "Throws an error if the count is lower than zero." } ;\r
-\r
-HELP: count-down\r
-{ $values { "count-down" count-down } }\r
-{ $description "Decrements a count-down latch. If it reaches zero, all threads blocking on " { $link await } " are notified." }\r
-{ $errors "Throws an error if an attempt is made to decrement the count lower than zero." } ;\r
-\r
-HELP: await\r
-{ $values { "count-down" count-down } }\r
-{ $description "Waits until the count-down value reaches zero." } ;\r
-\r
-ARTICLE: "concurrency.count-downs" "Count-down latches"\r
-"The " { $vocab-link "concurrency.count-downs" } " vocabulary implements the " { $emphasis "count-down latch" } " data type, which is a wrapper for a non-negative integer value which tends towards zero. A thread can either decrement the value, or wait for it to become zero."\r
-{ $subsections\r
-    <count-down>\r
-    count-down\r
-    await\r
-}\r
-"The vocabulary was modelled after a similar feature in Java's " { $snippet "java.util.concurrent" } " library." ;\r
-\r
-ABOUT: "concurrency.count-downs"\r
+USING: help.markup help.syntax sequences ;
+IN: concurrency.count-downs
+
+HELP: <count-down>
+{ $values { "n" "a non-negative integer" } { "count-down" count-down } }
+{ $description "Creates a new count-down latch." } 
+{ $errors "Throws an error if the count is lower than zero." } ;
+
+HELP: count-down
+{ $values { "count-down" count-down } }
+{ $description "Decrements a count-down latch. If it reaches zero, all threads blocking on " { $link await } " are notified." }
+{ $errors "Throws an error if an attempt is made to decrement the count lower than zero." } ;
+
+HELP: await
+{ $values { "count-down" count-down } }
+{ $description "Waits until the count-down value reaches zero." } ;
+
+ARTICLE: "concurrency.count-downs" "Count-down latches"
+"The " { $vocab-link "concurrency.count-downs" } " vocabulary implements the " { $emphasis "count-down latch" } " data type, which is a wrapper for a non-negative integer value which tends towards zero. A thread can either decrement the value, or wait for it to become zero."
+{ $subsections
+    <count-down>
+    count-down
+    await
+}
+"The vocabulary was modelled after a similar feature in Java's " { $snippet "java.util.concurrent" } " library." ;
+
+ABOUT: "concurrency.count-downs"