Is flatMap on Flux always sequential? I know that It is not sequential when then function used in flatMap return flux. project-reactor flatMap
But if the function used in flatMap returns mono, would it be always sequential?
Say I have a function that takes an object and returns only Mono.
fun aFunction(foo: Int): Mono<Int> {
return (foo + 1).toMono()
}
then
Flux.just(1,2,3,4)
.flatMap{ aFunction(it) }
always return 2,3,4,5?