summaryrefslogtreecommitdiff
path: root/tests/chain.apl
diff options
context:
space:
mode:
authorglenda <glenda@cirno>2022-09-10 16:25:05 +0000
committerglenda <glenda@cirno>2022-09-10 16:25:05 +0000
commite2ebfbb7d19ff3b990eb51dc9843200053cbbf98 (patch)
tree986b0353a1179f803872b1578ebfe0acd83050bd /tests/chain.apl
parentd07d4afcb8acff3757394f2f9822d014f31fecf0 (diff)
Improve the session a lot
Diffstat (limited to 'tests/chain.apl')
-rw-r--r--tests/chain.apl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/chain.apl b/tests/chain.apl
index af09a2b..9b9ba33 100644
--- a/tests/chain.apl
+++ b/tests/chain.apl
@@ -1,9 +1,9 @@
worker←{
- msg←{1 ⍵}recv ⍬
+ (from msg)←{1 ⍵} RECV ⍬
⍵≡⍬: ⎕←'DONE'
⎕←'Worker id ',(⍕⎕self),' (',(⎕self ⎕tasks 1),') got message: ',(⍕msg)
⎕←'Forwarding from ',(⍕⎕self), ' to ',⍕⍵
- msg send ⍵
+ msg SEND ⍵
}
last←worker&'worker'⍣10⊢⍬
-'Hello there' send last
+'Hello there' SEND last