view tests/sleep.ur @ 1758:7afe63952fe6

New release
author Adam Chlipala <adam@chlipala.net>
date Sat, 12 May 2012 11:59:31 -0400
parents 500e93aa436f
children
line wrap: on
line source
fun annoyer () =
    alert "Hi!";
    sleep 5000;
    annoyer ()

fun main () : transaction page = return <xml><body onload={annoyer ()}/></xml>