summaryrefslogtreecommitdiff
path: root/tests/chain.apl
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-05-16 16:34:47 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-05-16 16:34:47 +0000
commita63358d02ae15ff9a62961d46e58bff26dbab68c (patch)
tree31361a3dbfdd678535374f9b38a03408bb86151e /tests/chain.apl
parentd78b13ae6bbf408a102108228932aad9fdd6c930 (diff)
Implement selective receive
Diffstat (limited to 'tests/chain.apl')
-rw-r--r--tests/chain.apl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/chain.apl b/tests/chain.apl
index aeeab52..b825bbb 100644
--- a/tests/chain.apl
+++ b/tests/chain.apl
@@ -1,5 +1,5 @@
worker←{
- msg←1⍨⍇0
+ msg←{1 ⍵}⍇⍬
⍵≡⍬: ⎕←'DONE'
⎕←'Worker id ',(⍕⎕self),' got message: ',(⍕msg)
⎕←'Forwarding from ',(⍕⎕self), ' to ',⍕⍵