Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up3.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 |


Originally posted on StackOverflow.
The following code crashes with
StackOverflowErrorand the stacktrace shows a long chain ofrequestcalls.I'm not sure why there is such a chain created and if this is a result of an RxJava bug or not.