From 015297d90b7b9e87034a100d9ce417af6929eaa6 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 22 Mar 2009 16:03:45 -0400 Subject: Proper recv --- tests/channel.ur | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/channel.ur') 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 -- cgit v1.2.3