I have two Completable. I would like to do following scenario:
If first Completable gets to onComplete , continue with second Completable. The final results would be onComplete of second Completable.
This is how I do it when I have Single getUserIdAlreadySavedInDevice() and Completable login():
@Override
public Completable loginUserThatIsAlreadySavedInDevice(String password) {
return getUserIdAlreadySavedInDevice()
.flatMapCompletable(s -> login(password, s))
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…