|
MissingH.Threads.Timeout | Portability | Haskell 2-pre | Stability | provisional | Maintainer | simons@cryp.to |
|
|
|
Description |
Timeout support for IO computations.
|
|
Synopsis |
|
|
|
Documentation |
|
type Timeout = Int |
Timeouts are given in microseconds (1/10^6 seconds).
Negative values generally mean "wait indefinitely".
Make sure you don't exceed maxBound :: Int when
specifying large timeouts!
|
|
timeout :: Timeout -> IO a -> IO (Maybe a) |
Wrap an IO computation to timeout and return Nothing
after n microseconds, otherwise Just a is returned.
|
|
Produced by Haddock version 0.8 |