Aug 28, 2017 · 1 min read
- ``` List<Boolean> result = Single.merge(syncObservables) .onErrorReturnItem(true).toList().blockingGet();``` — This code is for merging all the observables together and have a blocking call. More like async/await in kotlin, here the code within syncObservables will be running in asynchronous and await is done by “blockingGet()” which waits for the calls to complete.
- x + 2, where is x is the average time. Considering all the calls run in parallel should almost take only x times. Just a rough estimate, it’s not accurate.
