
19 Apr
2001
19 Apr
'01
8:38 a.m.
timeout n a = parIO (do { r <- a; return (Just r) }) (do { threadDelay n; return Nothing })
oh, I this looks better (to me) since it doesn't use exceptions! does parIO kill the `other' thread? still I don't find parIO (in ghc-4.08), in what module is it? -- -- Johannes Waldmann ---- http://www.informatik.uni-leipzig.de/~joe/ -- -- joe@informatik.uni-leipzig.de -- phone/fax (+49) 341 9732 204/252 --