Mercurial > urweb
view tests/channel.ur @ 689:b6a8425e1b1f
Make sure only one pull request runs at a time for each client
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 02 Apr 2009 13:48:59 -0400 |
parents | f73913d97a40 |
children |
line wrap: on
line source
fun main () : transaction page = ch <- channel; let 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 return <xml><body onload={onload ()}> <button value="Another?" onclick={haveAnother ()}/> </body></xml> end