HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulelifted-base-0.2.3.12Haskell98

System.Timeout.Lifted

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

Synopsis
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.