Lets say I have a repository.save(..) method which returns a Mono.
Also lets say I have a repository.findByEmail(..) which returns a Mono.
Problem:
I want that the first Mono finishes AFTER do the second Mono.
repository.save(..).then(repository.findByEmail(..))
However, the second Mono here always gets executed first?
I was under the impression that .then(..) finishes and then plays another Mono
The source code says:Let this {@link Mono} complete then play another Mono.
What is the solution to my problem?