-
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
3.x: recursive concat causes StackOverflowError #6958
Comments
Hi, |
Sure. |
I want to share my theory: one of the comments In the original post on stackOverFlow suggest alternative working implementation:
As we can see the unfold function takes as an argument a function that contains the if-else expression, and this is the right way to do so because the unfold return a flowable object that contains the base case of the recursion. @akarnokd , What do you think about my theory? |
It creates a long chain because of |
it looks like each time you add new couple of concatWith-concatMap operators, so while the sequence grow up it must pass the emit to the whole concatWith-concatMap couples then to the Consumer. I'm sorry to bother, but i have a question: |
Originally posted on StackOverflow.
The following code crashes with
StackOverflowError
and the stacktrace shows a long chain ofrequest
calls.I'm not sure why there is such a chain created and if this is a result of an RxJava bug or not.
The text was updated successfully, but these errors were encountered: