lifted-base-0.1.0.2: lifted IO operations from the base library

Portabilitynon-portable
Stabilityexperimental
Maintainerlibraries@haskell.org

System.Timeout.Lifted

Description

Attach a timeout event to monadic computations which are instances of MonadBaseControl.

Synopsis

Documentation

timeout :: MonadBaseControl IO m => Int -> m α -> m (Maybe α)Source

Generalized version of timeout.

Note that when the given computation times out any side effects of m are discarded. When the computation completes within the given time the side-effects are restored on return.