I'm using rxjava together with retrofit on Android. I have several retrofit observables that are started together and that all run in different threads.
I'd like to be notified (via callback) when all of them have completed.
I've looked into various Observable 'combine' functions on the documentation but couldn't find one that does this exact thing.
Any ideas?
Thanks, Bye, Marco
答案 0 :(得分:1)
经过多次挖掘后,我认为我在寻找的是:
http://reactivex.io/documentation/operators/zip.html
或
http://reactivex.io/documentation/operators/combinelatest.html
在我看来,当Observables只会发出一个项目(即他们可以双单)zip& combinelatest表现相似。