trace-dispatcher
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Logging.Utils

Synopsis

Documentation

runInLoop :: IO () -> (SomeException -> IO ()) -> Word -> Word -> IO () Source #

Run an IO action which may throw an exception in a loop. On exception, the action will be re-run after a pause. That pause doubles which each exception, but is reset when the action runs long enough.

showT :: Show a => a -> Text Source #

Convenience function for a Show instance to be converted to text immediately