Closed
Description
WebFlux Coroutines support does not handle correctly suspending functions that returns Coroutines Flow
which is a valid use case when for example using WebClient
"2 stage" API.
@GetMapping("/flow-via-webclient")
suspend fun flowViaWebClient() =
client.get()
.uri("/flow")
.accept(MediaType.APPLICATION_JSON)
.awaitExchange()
.bodyToFlow<Banner>()
This use case is valid and should be supported.