Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
retryCount :: Configuration -> Intsphinx Text.Search.Sphinx.Configuration Distributed retries count
retryDelay :: Configuration -> Intsphinx Text.Search.Sphinx.Configuration Distributed retries delay
-
ghc GHC.Builtin.PrimOps No documentation available.
RetryEvent :: Int -> ServerEventwai-extra Network.Wai.EventSource No documentation available.
RetryEvent :: Int -> ServerEventwai-extra Network.Wai.EventSource.EventStream No documentation available.
-
retry Control.Retry How to handle a failed action.
type
RetryPolicy = forall (m :: Type -> Type) . Monad m => RetryPolicyM mretry Control.Retry Simplified RetryPolicyM without any use of the monadic context in determining policy. Mostly maintains backwards compatitibility with type signatures pre-0.7.
newtype
RetryPolicyM (m :: Type -> Type)retry Control.Retry A RetryPolicyM is a function that takes an RetryStatus and possibly returns a delay in microseconds. Iteration numbers start at zero and increase by one on each retry. A *Nothing* return value from the function implies we have reached the retry limit. Please note that RetryPolicyM is a Monoid. You can collapse multiple strategies into one using mappend or <>. The semantics of this combination are as follows:
- If either policy returns Nothing, the combined policy returns Nothing. This can be used to inhibit after a number of retries, for example.
- If both policies return a delay, the larger delay will be used. This is quite natural when combining multiple policies to achieve a certain effect.
> limitedBackoff = exponentialBackoff 50000 <> limitRetries 5
Naturally, mempty will retry immediately (delay 0) for an unlimited number of retries, forming the identity for the Monoid. The default retry policy retryPolicyDefault implements a constant 50ms delay, up to 5 times:> retryPolicyDefault = constantDelay 50000 <> limitRetries 5
For anything more complex, just define your own RetryPolicyM:> myPolicy = retryPolicy $ \ rs -> if rsIterNumber rs > 10 then Just 1000 else Just 10000
Since 0.7.RetryPolicyM :: (RetryStatus -> m (Maybe Int)) -> RetryPolicyM (m :: Type -> Type)retry Control.Retry No documentation available.
-
retry Control.Retry Datatype with stats about retries made thus far.