I add this to two places in my code
Flux.empty()
.collectList()
.block();
In one case IntelliJ highlights .block()
with error message Inappropriate blocking method call
. In the other place it's ok.
In Settings -> Inspections
I see that this can be because in this fragment thread should not be blocked.
Reports thread-blocking method calls found in a code fragment where a thread should not be blocked (e.g. Reactive frameworks, Kotlin coroutines)
In what places thread should not be blocked? I know that we have to avoid blocking calls but I'm doing a migration from reactive to non-reactive and need this blocking as a temporary workaround.