RetryProtocol
public protocol RetryProtocol
Protocol for handling retries for network requests
-
Decide on retry in case of success
Declaration
Swift
func retryChoice(for request: ServiceRequest, with response: Response) -> RetryChoiceParameters
requestRequest to retry
responseResponse receiver from service
Return Value
Retry choice
-
Decire on retry in case of error
Declaration
Swift
func retryChoice(for request: ServiceRequest, with error: Error) -> RetryChoiceParameters
requestRequest to retry
errorResponse receiver from service
Return Value
Retry choice
RetryProtocol Protocol Reference