You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not an issue. Just a question. Is it possible to change the delay time between promise retrys? I would like to implement the Exponential Backoff and Retry Pattern with different time intervals. This is what I have so far
public static func genericRequestWithRetry(with api: EndPoint) -> Promise {
let customQueue = DispatchQueue(label: "GenericRequestQueue", qos: .userInitiated)
return retry(on: customQueue, attempts: 3, delay: 2, condition: { remainingAttempts, error in
// here I would like to change the delay value and then retry
}
) {
genericRequest(with: api)
}
}
The text was updated successfully, but these errors were encountered:
Not an issue. Just a question. Is it possible to change the delay time between promise retrys? I would like to implement the Exponential Backoff and Retry Pattern with different time intervals. This is what I have so far
public static func genericRequestWithRetry(with api: EndPoint) -> Promise {
The text was updated successfully, but these errors were encountered: