I.S
I.S

Reputation: 2053

Two sequence of Flowable don't reach the to toList()

I have Flowable object. I’m doing following actions Flowable -> flatmapIterable()->map()->toList() it works perfect while when I use the same chain of actions I have, but before Flowable I have another Flowable which I flatmap and get another Flowable like

Flowable->flatmap(receive Flowable the above flowable) ->flatmapIterable()->map()->toList()

it reaches the toList() method and it stops there I don’t receive after toList() part where I subscribe()

Upvotes: 1

Views: 662

Answers (1)

Kiskae
Kiskae

Reputation: 25573

Flowable.toList() will only emit something after the onComplete notification from the source arrives. In your example this means the original flowable and all the flowables created in the flatMap have completed.

If nothing is emitted that must mean one of those Flowables has not yet ended or never ends.

Upvotes: 3

Related Questions