Jotish Suthar
Aug 28, 2017 · 1 min read

Gurpreet Singh

  1. ``` 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.
  2. 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.
)
    Jotish Suthar

    Written by

    Cultivate your curiosity \m/ Android Engineer