vint
10/03/2016, 7:52 AMval result = Observable.just(user)
.map { it.authenticate() }
.map { it.validate() }
.map { it.readData() }
.map { Result.of(it) }
.onErrorReturn { Result.of { throw it } }
authenticate() validate() readData() all returns User or throw Exception
What I trying to achieve is when readData() throws an exception I want to retry readData() without retrying the whole stream.