spring-framework
5.3.39

# bodyAndAwait

inline suspend fun <T : Any> ServerResponse.BodyBuilder.bodyAndAwait(flow: Flow<T>): ServerResponse
Content copied to clipboard

Coroutines variant of ServerResponse.BodyBuilder.body with Any and ParameterizedTypeReference parameters providing a `bodyAndAwait(Flow<T>)` variant. This extension is not subject to type erasure and retains actual generic type arguments.

#### Author

Sebastien Deleuze

#### Since

5.2