These are chat archives for ReactiveX/RxJava

Jul 2018
Matthew Adams
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
Jul 05 2018 18:45
@matthewadams I would probably do .flatMapObservable(Observable::from)
Jul 05 2018 18:54
Matthew Adams
Jul 05 2018 19:05
@dano that did the trick! Thanks!