nickk
12/14/2017, 1:32 PMconcatMap
is supposed to preserve the ordering of the Observables.
However, if I trigger network requests from each observable’s mapping function, the results could still come in “random” order?
concatMap
does not wait for the onComplete
event of one ObservableSource, before consuming the next one? (edited)
stepsObservable
.concatMap { elem: SyncStep ->
Log.e("Rx", "concatMap: ${elem.stepNumber}: ${elem.name}")
updateProgress(elem.name)
return@concatMap elem.obs()
}
If elem.obs()
triggers a network request, then I could still receive the results in random order?