Questions tagged [rx-java-completable]
4 questions
2
votes
1 answer
RxJava Completable.andThen never triggers the second Completable
I'm trying to chain two reactive calls which return Completable using retrofit on android:
val userRequest = ...
val languageRequest = ...
return userService.updateUser(userRequest)
.andThen { userService.updateMessagingUserLanguages(user.id,…

Benjamin
- 7,055
- 6
- 40
- 60
1
vote
2 answers
How to add andThen() in a Completable.complete() programmatically in Rx / Reactive Java
how do i make a chain of andThen() operator on an Completable ?
for example, the original code is this:
return Completable.complete()
.andThen(processdata("01"))
.andThen(processdata("02"))
.andThen(processdata("03"))
…

herman s
- 11
- 3
0
votes
1 answer
Insert in Room database missing values
I am using RxJava to do the background task and using java, android and its an old project. I am inserting the values in OnComplete in CompletableObserver which is in background thread inside a foreground service. After the insertion operation the…

abby
- 350
- 4
- 21
0
votes
1 answer
rxjava, how to inspect the result of a Single
using kotlin, having code
fun fetchRemoteDataApi(): Single = networkApi.getData()
// it is just a retrofit
@GET(".../api/getData")
fun getData() : Single
fun mergeApiWithDb(): Completable =…

lannyf
- 9,865
- 12
- 70
- 152