Lets consider following code:
List<Mono<String>> monoList= apiCall();
List<Disposable> disposableList = monoList.stream()
.map(m-> m.subscribe(str-> {
log.info("Mono is finished with "+ str);
})
).collect(Collectors.toList());
// I need to await here
I need to await when all mono will be finished.
How could I achieve it?