MissingH-0.16.0: ContentsIndex
MissingH.Threads.Timeout
PortabilityHaskell 2-pre
Stabilityprovisional
Maintainersimons@cryp.to
Description
Timeout support for IO computations.
Synopsis
type Timeout = Int
timeout :: Timeout -> IO a -> IO (Maybe a)
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