You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This commit leverages Flux instead of Flow to support suspending
handler methods returning Flow in order to avoid multiple invocations
of the suspending function on every collect().
See spring-projectsgh-22820
WebFlux Coroutines support does not handle correctly suspending functions that returns Coroutines
Flow
which is a valid use case when for example usingWebClient
"2 stage" API.This use case is valid and should be supported.
The text was updated successfully, but these errors were encountered: