I have two Singles:
I want the second Single to start right after the first one called onSuccess, the second Single depends on the data from the first. I'm looking for the right operator to achieve this. any recommendation?
Try flatMap:
fetchUser
.flatMap(user -> registerUser(user)) // .flatMap(this::registerUser)
.subscribe()
public Single<User> fetchUser() {...}
public Single<?> registerUser (User user) {...}