Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Retry = Retry Int Double
- data WaitError e
- = NotStarted
- | ConditionUnmet e
- | forall excp.Exception excp => Thrown excp
- waitIO :: MonadIO m => MonadBaseControl IO m => Retry -> m a -> (a -> m (Either e b)) -> m (Either (WaitError e) b)
- waitIODef :: MonadIO m => MonadBaseControl IO m => m a -> (a -> m (Either e b)) -> m (Either (WaitError e) b)
- waitIOPred :: MonadIO m => MonadBaseControl IO m => Retry -> m a -> (a -> m Bool) -> m (Either (WaitError Text) a)
- waitIOPredDef :: MonadIO m => MonadBaseControl IO m => m a -> (a -> m Bool) -> m (Either (WaitError Text) a)
Documentation
Specifies the maximum number of retries and the interval in seconds for waitIO
.
Error description for waitIO
NotStarted | |
ConditionUnmet e | |
forall excp.Exception excp => Thrown excp |
waitIO :: MonadIO m => MonadBaseControl IO m => Retry -> m a -> (a -> m (Either e b)) -> m (Either (WaitError e) b) Source #
waitIODef :: MonadIO m => MonadBaseControl IO m => m a -> (a -> m (Either e b)) -> m (Either (WaitError e) b) Source #
Calls waitIO
with the default configuration of 30 retries every 100ms.
waitIOPred :: MonadIO m => MonadBaseControl IO m => Retry -> m a -> (a -> m Bool) -> m (Either (WaitError Text) a) Source #
waitIOPredDef :: MonadIO m => MonadBaseControl IO m => m a -> (a -> m Bool) -> m (Either (WaitError Text) a) Source #
Calls waitIOPred
with the default configuration of 30 retries every 100ms.