OperationRetrier

public final class OperationRetrier
  • Delegate to handle retry cases

    Declaration

    Swift

    public let handler: OperationRetryHandler
  • Maximum number of times to retry a request

    Declaration

    Swift

    public let maxRetries: UInt
  • Millisecond multiplier to adjust exponential curve

    Declaration

    Swift

    public let exponentialMultiplier: UInt32
  • Is the retry loop currently paused

    Declaration

    Swift

    public private(set) var isPaused: Bool
  • Number of attempted retries

    Declaration

    Swift

    public private(set) var attemptedRetries: UInt
  • Declaration

    Swift

    public init(handler: OperationRetryHandler, maxRetries: UInt, exponentialMultiplier: UInt32)
  • Start the retry loop

    Declaration

    Swift

    public func start()
  • Stops the retry loop

    Declaration

    Swift

    public func stop()