spring-framework / org.springframework.web.reactive.function.server / bodyFlowAndAwait

bodyFlowAndAwait

@FlowPreview suspend inline fun <reified T : Any> BodyBuilder.bodyFlowAndAwait(flow: Flow<T>): ServerResponse

Coroutines Flow based extension for ServerResponse.BodyBuilder.body providing a bodyFlowAndAwait(Flow<T>) variant. This extension is not subject to type erasure and retains actual generic type arguments.

Author
Sebastien Deleuze

Since
5.2