| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Simplex.Messaging.Agent.RetryInterval
Documentation
data RetryInterval Source #
Constructors
| RetryInterval | |
Fields
| |
data RetryInterval2 Source #
Constructors
| RetryInterval2 | |
Fields | |
data RetryIntervalMode Source #
Instances
| Show RetryIntervalMode Source # | |
Defined in Simplex.Messaging.Agent.RetryInterval Methods showsPrec :: Int -> RetryIntervalMode -> ShowS show :: RetryIntervalMode -> String showList :: [RetryIntervalMode] -> ShowS | |
| Eq RetryIntervalMode Source # | |
Defined in Simplex.Messaging.Agent.RetryInterval Methods (==) :: RetryIntervalMode -> RetryIntervalMode -> Bool (/=) :: RetryIntervalMode -> RetryIntervalMode -> Bool | |
Constructors
| RI2State | |
Fields
| |
withRetryInterval :: forall m a. MonadIO m => RetryInterval -> (Int64 -> m a -> m a) -> m a Source #
withRetryIntervalCount :: forall m a. MonadIO m => RetryInterval -> (Int -> Int64 -> m a -> m a) -> m a Source #
withRetryForeground :: forall m a. MonadIO m => RetryInterval -> STM Bool -> STM Bool -> (Int64 -> m a -> m a) -> m a Source #
withRetryLock2 :: forall m. MonadIO m => RetryInterval2 -> TMVar () -> (RI2State -> (RetryIntervalMode -> m ()) -> m ()) -> m () Source #
nextRetryDelay :: Int64 -> Int64 -> RetryInterval -> Int64 Source #