Inspectopedia
 
2024.3

Calling 'subscribe' in "reactive" methods

Warning
Last modified: 03 December 2024

Reports subscribe() calls in "reactive" methods.

Methods returning a publisher (including Uni and Multi) should not call the subscribe() method directly because it can break the reactive call chain.

Instead of using subscribe(), consider using composition operators like flatMap(), merge(), and so on.

Example: