-
Creates an instance using the provided closure.
Declaration
Swift
public init(_ retryHandler: @escaping RetryHandler)
Parameters
retryHandler
RetryHandler
closure to be executed when handling request retry. -
Declaration
Swift
open func retry(_ request: Request, for session: Session, dueTo error: Error, completion: @escaping (RetryResult) -> Void)