HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulelifted-base-0.2.3.12Haskell98

System.Timeout.Lifted

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

  • 1 value
valuetimeout :: MonadBaseControl IO m => Int -> m a -> m (Maybe a)
#

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.