-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
retryWhen method signature for with Completable and Single #5135
Comments
@akarnokd Sorry, I accidentally submitted the issue without my description. Now fixed. This isn't a crosspost, but appears to be a bug. |
You have the wrong return type argument in the first case. Either change it to |
@akarnokd Aren't the
So the following
produces the error:
|
Thanks, I see he issue now. Indeed, the Completable and Single signature for retryWhen is different from the others. |
Sure, I can do that. Question: Should the function return type be |
I'd like to encourage you to think about that a bit. |
Two hints:
|
Closing via #5136. |
@akarnokd I tried to use:
On a
And the squiggly lines below error -> Observable.timer(30, TimeUnit.SECONDS) say:
What am I doing wrong? Is this bug fixed? |
Using |
Please check the signatures of operators so that you are using the right types: https://github.com/ReactiveX/RxJava#base-class-vs-base-type
That tutorial predates RxJava 2.
|
Also do not cross post questions: https://stackoverflow.com/questions/50325533/type-error-on-retrywhen-with-delay |
I thought about posting here the stackoverflow link, but many people just ignore links, I am glad you aren't one of those. Thank you very much for the explanation! |
When I attempt to use
retryWhen
to delay a retry withCompletable
orSingle
I receive an incompatible types error, as demonstrated in the following code:However, there are no issues with
Observable
orFlowable
:Looks like there is an issue with the return types for
apply
?The text was updated successfully, but these errors were encountered: