I have this observable ``` val result = Obs...
# rx
v
I have this observable
Copy code
val 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.