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)
1.4m articles
1.4m replys
5 comments
56.9k users