]> gitweb.factorcode.org Git - factor.git/commitdiff
concurrency.distributed-docs: shorten some sample code
authorAlexander Iljin <ajsoft@yandex.ru>
Thu, 4 Jan 2018 22:00:15 +0000 (01:00 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 16 Jan 2018 21:40:14 +0000 (13:40 -0800)
basis/concurrency/distributed/distributed-docs.factor

index 4256d6059a393897a2ac22ab7ed12f309cbbe44c..99f1e0ed075a6b7355f2a17b924389ec93b022f5 100644 (file)
@@ -14,13 +14,13 @@ ARTICLE: "concurrency.distributed.example" "Distributed Concurrency Example"
 "The code to run the server is:"
 { $code
   "USING: io.servers ;"
-  "9000 local-server <node-server> start-server drop"
+  "9000 local-server start-node"
 }
 "The code to start the thread is:"
 { $code
     "USING: concurrency.messaging threads ;"
     ": log-message ( -- ) receive . flush log-message ;"
-    "[ log-message ] \"logger\" spawn dup name>> register-remote-thread"
+    "[ log-message ] \"logger\" [ spawn ] keep register-remote-thread"
 }
 "This spawns a thread that waits for the messages and prints them. It registers "
 "the thread as remotely accessible with " { $link register-remote-thread } "."