How to ignore error and continue infinite stream?

后端 未结 10 1753
执念已碎
执念已碎 2020-12-05 06:18

I would like to know how to ignore exceptions and continue infinite stream (in my case stream of locations)?

I\'m fetching current user position (using Android-React

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 07:08

    With Rxjava2, we could call the overloaded flatmap with delayErrors parameter: flatmap javadoc

    When passing it as true:

    exceptions from the current Flowable and all inner Publishers are delayed until all of them terminate if false, the first one signaling an exception will terminate the whole sequence immediately

提交回复
热议问题