2
votes

I have a

list.stream()
.map(element -> func());

where func() returns with Mono. What is the easiest way to convert this list of Mono<CustomObject> objects to Flux<CustomObject> and return it from the stream?

1
You can take a look at this post stackoverflow.com/questions/51843767/…ilovemilk

1 Answers

4
votes
List<Mono<CustomObject >> monoList = new ArrayList<>();
monoList(object);

Flux<CustomObject> flux = Flux.concat(monoList);