Config

public struct Config

Config for retries

  • Max number of retries

    Declaration

    Swift

    public var maxRetryCount: UInt
  • cap

    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

    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

    maxRetryCount

    Max number of retries

    cap

    Max interval for retry

    minDelay

    Minimum interval for retry (before jitter)

    base

    Base value for retry

    exp

    Exp base for retry