-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in retry! 🎉 #1924
base: master
Are you sure you want to change the base?
Built-in retry! 🎉 #1924
Conversation
Generated by 🚫 Danger Swift against a2e91a2 |
Codecov Report
@@ Coverage Diff @@
## development #1924 +/- ##
==============================================
Coverage ? 89.77%
==============================================
Files ? 30
Lines ? 1037
Branches ? 0
==============================================
Hits ? 931
Misses ? 106
Partials ? 0
Continue to review full report at Codecov.
|
I've recently struggled using a combination of Alamofire's Having a built-in retry feature would allow plugins to be called upon every retry, which is nice. There are some points I would like to raise, though it may be best to discuss them in a dedicated thread:
|
Hey @amaurydavid - great points. Generally you shouldn't need to use the session at all, we try to provide as much flexibility as possible but if something's not there you can just customize the session (or sessionManager in Moya < 14). As for the list there is nothing like that AFAIK. The resolution of #1639 was that we don't really want to remove Alamofire as a dependency due to the fact that we would need to provide our own networking layer (which Moya shouldn't really care about as we are just a layer on top of that). But this discussion was year ago and maybe we could try again? Maye instead of removing Alamofire (and using our own networking layer in Moya) we could to write a small library under Moya organization that would handle networking? Not sure if we have the capacity for that. |
+1 |
Why no merger? |
(Note: we should wait with this PR until all the current fixes are merged & released in the next beta, but this is something I want to support soon)
TODO: