diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/channel.ur | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/channel.ur b/tests/channel.ur index 6b98f5d7..df50ea27 100644 --- a/tests/channel.ur +++ b/tests/channel.ur @@ -1,10 +1,19 @@ fun main () : transaction page = ch <- channel; let - fun onload () = + fun make () = subscribe ch; send ch "Hello world!" + fun echo () = + msg <- recv ch; + alert(msg); + echo () + + fun onload () = + make (); + echo () + fun haveAnother () = send ch "Here's another." in |