Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ouroboros.Network.ExitPolicy
Synopsis
- newtype ReconnectDelay = ReconnectDelay {
- reconnectDelay :: DiffTime
- data ExitPolicy a = ExitPolicy {}
- stdExitPolicy :: ReturnPolicy a -> ExitPolicy a
- type ReturnPolicy a = a -> ReconnectDelay
- alwaysCleanReturnPolicy :: ReconnectDelay -> ExitPolicy a
Documentation
newtype ReconnectDelay Source #
Constructors
ReconnectDelay | |
Fields
|
Instances
data ExitPolicy a Source #
ReturnPolicy
allows to compute reconnection delay from value return by
a mini-protocol. If a mini-protocol returned with an error epErrorDelay
is used.
Constructors
ExitPolicy | |
Fields
|
stdExitPolicy :: ReturnPolicy a -> ExitPolicy a Source #
ExitPolicy
with 10s error delay.
type ReturnPolicy a = a -> ReconnectDelay Source #
alwaysCleanReturnPolicy Source #
Arguments
:: ReconnectDelay | reconnection delay on error |
-> ExitPolicy a |