TL;DR
How to convert Task.whenAll(List
into RxJava
?
My existing code uses Bolts to build up a list of asynchr
You probably looked at the zip
operator that works with 2 Observables.
There is also the static method Observable.zip
. It has one form which should be useful for you:
zip(java.lang.Iterable<? extends Observable<?>> ws, FuncN<? extends R> zipFunction)
You can check out the javadoc for more.
If you use Project Reactor, you can use Mono.when
.
Mono.when(publisher1, publisher2)
.map(i-> {
System.out.println("everything is done!");
return i;
}).block()