diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-05-16 10:17:42 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-05-16 10:17:42 +0000 |
commit | fd7f369b1f1390e1d0647589d283f1fb41a1105d (patch) | |
tree | 804e2de900aff23c50348faab5ed2df85827fb7e | |
parent | 6e01e6ba502d17db4e03fd281e2aa1dd13f7c35e (diff) |
Update demo code
-rw-r--r-- | tests/demo.apl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/demo.apl b/tests/demo.apl index 00d2fbf..57f5e5d 100644 --- a/tests/demo.apl +++ b/tests/demo.apl @@ -5,10 +5,9 @@ ⍝ even though one does the computation in a different thread. iotaServer←{ - msg←1⍨⍇0 + msg←1⍨⍇⍬ msg≡'stop': ⎕←'Bye bye from indexer' (from num)←msg - num<0: ∇⍵⊣ ('some slow result'⊣⎕DL 2)⍈from _←(⍳num)⍈from ∇⍵ } @@ -28,16 +27,13 @@ flush←{ ⍺←0 12::⍺ msg←1⍨⍇0 + _←⎕←'Flush' ⍺ msg (⍺+1)∇⍵ } iota←{ - ⍺←⍬ ⍝ No timeout by default 11::'Sorry, the iota server is not running' 12::'Sorry, the iota server was too slow to respond' - ⍝ Sending messages to a nonexisting thread throws a domain error (11) - ⍝ And if a timeout happens, an error 12 will happen. - _←flush '' _←(⎕self ⍵)⍈id 1⍨⍇⍺ } |