-
Notifications
You must be signed in to change notification settings - Fork 156
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
Issues with RetryWhen #148
Comments
Mind taking a look? @danielt1263 |
I'll have a look this weekend. |
Good job. I also made a couple of fixes that can be merged after your PR. #151 |
Just had this bite me in the rear with API requests. @danielt1263 's PR fixed my issue. |
I also spent some time debugging this issue, can we merge @danielt1263's PR? Thanks! |
@freak4pc Pls check @danielt1263 's PR. Thanks |
Looks like this PR stuck. I have improved this operator, you can check out it here: CombineKit. Hope this helps |
Now RetryWhen subscribes to upstream twice. This is because the Sink itself subscribes to the upstream in .init.
Test testSuccessfulRetry() checks the number of subscriptions, but not correctly. It should check that the error publisher produces at least one item.
The correct test should look like this:
A possible solution is to remove upstream subscription from Sink.init and setting upstreamIsCancelled cancelUpstream function.
The text was updated successfully, but these errors were encountered: