Safe Haskell | None |
---|---|
Language | Haskell2010 |
MonadTimed
related helper functions.
- repeatForever :: (MonadTimed m, MonadIO m, MonadCatch m) => Microsecond -> (SomeException -> m Microsecond) -> m () -> m ()
- sleepForever :: MonadTimed m => m ()
Documentation
:: (MonadTimed m, MonadIO m, MonadCatch m) | |
=> Microsecond | Period between action launches |
-> (SomeException -> m Microsecond) | What to do on exception, returns delay before retrying |
-> m () | Action |
-> m () |
Repeats an action periodically. If it fails, handler is invoked, determining delay before retrying. Can be interrupted with asynchronous exception.
sleepForever :: MonadTimed m => m () Source #
Sleep forever.