nakadi-client-0.4.0.0: Client library for the Nakadi Event Broker

Copyright(c) Moritz Schulte 2017
LicenseBSD3
Maintainermtesseract@silverratio.net
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Network.Nakadi.Internal.Retry

Description

This module provides the basic retry mechanism via the retry package.

Synopsis

Documentation

retryAction :: (MonadIO m, MonadMask m) => Config -> Request -> (Request -> m a) -> m a Source #

Try to execute the provided IO action using the provided retry policy. If executing the IO action raises specific exceptions of type HttpException, the action will be potentially retried (depending on the retry policy).