RetryPolicy

public enum RetryPolicy

The policy, returned by a RequestInterceptor that the NetworkClient should apply on a given NetworkResponse.

  • Do not retry the request.

    Declaration

    Swift

    case doNotRetry
  • Retry the request after the specified delay.

    Declaration

    Swift

    case afterDelay(TimeInterval)
  • Retry the request after the specified observable emits.

    Declaration

    Swift

    case afterEvent(Observable<Void>)