OperationRetryHandler

public struct OperationRetryHandler
  • Queue to dispatch retry operation on

    Declaration

    Swift

    public let retryQueue: DispatchQueue
  • Perform a retry and call completion handler with result of retry

    Declaration

    Swift

    public let retry: (@escaping (RetryResult) -> Void) -> Void
  • Retrier received a successful retry, will not retry again

    Declaration

    Swift

    public let onSuccess: () -> Void
  • Retrier retried the maximum number of times, will not retry again

    Declaration

    Swift

    public let onFailure: (UInt) -> Void