I'm converting small project written in RxJava 1.x to Reactor 3.x. All is good, except that I could not find out how to replace flatMap(Observable::from) with an appropriate counterpart. I have Mono<List<String>> and I need to convert it to Flux<String>.
flatMap(Observable::from)
Mono<List<String>>
Flux<String>
In Reactor 3, the from operator has been specialized into a few variants, depending on the original source (array, iterable, etc...).
from
Use yourMono.flatMapMany(Flux::fromIterable) in your case.
yourMono.flatMapMany(Flux::fromIterable)
2.1m questions
2.1m answers
60 comments
57.0k users