Config
public struct Config
Config for retries
-
Max number of retries
Declaration
Swift
public var maxRetryCount: UInt -
Max interval for retry
Declaration
Swift
public var cap: TimeInterval -
Minimum interval for retry (before jitter)
Declaration
Swift
public var minDelay: TimeInterval -
Base value for retry
Declaration
Swift
public var base: TimeInterval -
Exp base for retry
Declaration
Swift
public var exp: UInt -
Init
Declaration
Swift
public init(maxRetryCount: UInt = 3, cap: TimeInterval = 10, minDelay: TimeInterval = 0.01, base: TimeInterval = 0.2, exp: UInt = 2)Parameters
maxRetryCountMax number of retries
capMax interval for retry
minDelayMinimum interval for retry (before jitter)
baseBase value for retry
expExp base for retry
Config Structure Reference