M
M
mitaichik2017-06-21 00:51:45
Android
mitaichik, 2017-06-21 00:51:45

RxJava + Retorfit: how to wait for 2 requests to complete?

I'm just starting to learn RxJava? Possibly a lammer question: I'm doing
2 requests using Retrofit. I get 2 Observables. Now I need to do something when both of these requests are executed (if anyone is familiar with the concept of Promise, then something like Promise.all )
Is it possible to do this with RxJava

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2017-06-21
@mitaichik

zip or combineLatest
And in general there are docks, with pictures. You can read all the operators in the evening and then remember if necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question