``` Single.just("n/a") .map { ...
# rx
z
Copy code
Single.just("n/a")
                .map {
                    completeStep(1)
                    it
                }
                .map {
                    completeStep(2)
                    it
                }
                .throwIfNotLoggedIn()  //step 3
                .map {
                    completeStep(4)
                    it
                }
                .map {
                    completeStep(5)
                    it
                }
                .retryWhen {  //I want have the stream retry @ step #3 if the "user" is not logged in, after the user logs back in. is that possible?
                    it.flatMap { throwable ->
                        logHandingError()
                        logIn()
                        Publisher<Any> { }
                    }
                }
                .subscribe()