timeout : real -> ('a -> 'b) -> 'a -> 'b
- load "smlTimeout"; open smlTimeout; (* output omitted *) > val it = () : unit - timeout 0.1 (fn (x:int) => (raise Match):int) 5; > Exception- Match raised - timeout 0.2 OS.Process.sleep (Time.fromReal 2.0); > Exception- FunctionTimeout raised - timeout 1.0 (fn x => x) 5; > val it = 5: int