spring-webflux

Project Reactor. Mono.map() vs Mono.flatMap()

不羁的心 提交于 2020-08-27 07:10:11
问题 What is the principal difference between these in terms of Mono ? From the documentation, I read that flatMap acts asynchronous and map synchronous. But that doesn't really make sense for me b/c Mono is all about parallelism and that point isn't understandable. Can someone rephrase it in a more understandable way? Then in the documentation for flatMap stated (https://projectreactor.io/docs/core/release/api/reactor/core/publisher/Mono.html#flatMap-java.util.function.Function-): Transform the