```val result = Observable.just(user) ...
# rx
v
Copy code
val result = Observable.just(user)
                .map { it.authenticate() }
                .map { it.validate() }
                .flatMap { Observable.just(it.readData()).retry(3) }
                .map { Result.of(it) }
                .onErrorReturn { Result.of { throw it } }
I tried this but didn’t work, instead of retry everything 3 times, it just doesn’t retry at all