Just wondering if the usage of “onErrorReturn” is in keeping with the reactive paradigm in that…
Dylan Green
1

We use onErrorReturn() for a single request observable, this way that stream is completed, but the main stream keeps running.

requestParams.switchMap{ params -> 
// This won't kill the requestParams stream
performRequest(params).map { Lce.data(it) }
.startWith(Lce.loading())
.onErrorReturn { error -> Lce.error(error) }
}
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.