Skip to content

Instantly share code, notes, and snippets.

View MichalDanielDobrzanski's full-sized avatar
🎯
Focusing

Michał Dobrzanski MichalDanielDobrzanski

🎯
Focusing
View GitHub Profile
@MichalDanielDobrzanski
MichalDanielDobrzanski / taskViewModel.kt
Last active October 25, 2020 12:10
How to concat many network requests in RxJava and wait for their completion
package com.clarity.android.interview
import android.util.Log
import com.clarity.android.interview.network.DeliveryItem
import com.clarity.android.interview.network.NetworkApi
import com.clarity.android.interview.network.NetworkService
import com.clarity.android.interview.network.OrderResponse
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.annotations.Nullable