heckj / swiftui-notes

content for Using Combine - notes on learning Combine with UIKit and SwiftUI
https://heckj.github.io/swiftui-notes/
MIT License
1.98k stars 205 forks source link

Consider mentioning the Exponential Backoff approach in "retry" pattern #256

Open gatamar opened 2 years ago

gatamar commented 2 years ago

The retry approach is described in https://heckj.github.io/swiftui-notes/#patterns-retry. In the exponential backoff approach, the delay differs each time (but not randomly :) ). An example of a possible implementation is here: https://peterfriese.dev/posts/swiftui-combine-custom-operators/

I'm not sure if this request is appropriate, or is this case too specific. But in some of the apps I contributed to we used it (with an "imperative" non-reactive code).