These are chat archives for ReactiveX/RxJava

5th
Jul 2018
Matthew Adams
@matthewadams
Jul 05 2018 18:30
quick question: In RxJava 1.x, I need to convert a Single<List<T>> to Observable<T> in a processing pipeline: getSingleOfListOfThings().???.map(thing -> { ... })... where getSingleOfListOfThings()returns Single<List<Thing>>, and map needs to operate on each Thing individually. What's the magic incantation to take the place of ??? above?
Dan O'Reilly
@dano
Jul 05 2018 18:45
@matthewadams I would probably do .flatMapObservable(Observable::from)
tosun-si
@tosun-si
Jul 05 2018 18:54
Ñ
Matthew Adams
@matthewadams
Jul 05 2018 19:05
@dano that did the trick! Thanks!