Retry

public struct Retry

A Retry for RESTful Services.

var retry = Retry()
retry.retryErrorCodes = [.timedOut,.networkConnectionLost]
retry.retryInterval = 20
retry.maxRetryAttempts = 10
  • The default retry.

    Declaration

    Swift

    public static var `default`: Retry
  • The retry error codes. empty by default.

    Declaration

    Swift

    public var retryErrorCodes: Set<URLError.Code>
  • The retry interval. 10 by default.

    Declaration

    Swift

    public var retryInterval: TimeInterval
  • The max retry attempts. 5 by default.

    Declaration

    Swift

    public var maxRetryAttempts: Int
  • Retry Intializer

    Declaration

    Swift

    public init()

    Return Value

    new Retry object