Inspectopedia
 
2024.3

Zip contains parameter with Mono<Void> type

Warning
New
Last modified: 03 December 2024

Reports zip operations that contains arguments with Mono<Void> return value inside a Reactor chain.

Zip completes empty as soon as incoming Mono<Void> completes. The quick-fix suggests replacing zip() and zipWhen() and zipWith() with when.

Example:

After the quick-fix is applied:

New in 2023.1