concurrency.distributed-docs: update an example code

factor-shell
Alexander Iljin 2017-12-19 23:44:01 +01:00 committed by John Benediktsson
parent 5d5b794100
commit f1e4095d50
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ $nl
"The second Factor instance, the one associated with port 9001, can send "
"messages to the 'logger' thread by name:"
{ $code
"USING: io.sockets ; FROM: concurrency.messaging => send ;"
"\"hello\" \"127.0.0.1\" 9000 <inet4> \"logger\" <remote-thread> send"
"USING: io.servers concurrency.distributed ; FROM: concurrency.messaging => send ;"
"\"hello\" 9000 local-server \"logger\" <remote-thread> send"
}
"The " { $link send } " word is used to send messages to threads. If an "
"instance of " { $link remote-thread } " is provided, then "