|
Re: Implementing computations with timeout: msg#00098lang.haskell.cafe
Einar Karttunen writes: > What is the best way of doing an computation with a timeout? At <http://cryp.to/child/> you'll find a very readable and straightforward implementation of a generic timeout function: type Timeout = Int timeout :: Timeout -> IO a -> IO (Maybe a) The function uses the "two threads" approach you've outlined, and it has proven to work nicely in practice. Peter |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Implementing computations with timeout: 00098, Tomasz Zielonka |
|---|---|
| Next by Date: | Re: Hugs vs GHC (again) was: Re: Some randomnewbiequestions: 00098, Malcolm Wallace |
| Previous by Thread: | Re: Implementing computations with timeouti: 00098, Tomasz Zielonka |
| Next by Thread: | Re: Implementing computations with timeout: 00098, Sebastian Sylvan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |