view tests/sleep.ur @ 2179:4f4ae5c92434

New release
author Adam Chlipala <adam@chlipala.net>
date Sun, 18 Oct 2015 10:34:24 -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>