Add since to WebClient.ResponseSpec.awaitBodyOrNull()

See gh-26755
This commit is contained in:
Johnny Lim 2021-04-02 23:22:18 +09:00 committed by Stephane Nicoll
parent 58e40d1aa2
commit aec151e014
1 changed files with 1 additions and 0 deletions

View File

@ -148,6 +148,7 @@ suspend inline fun <reified T : Any> WebClient.ResponseSpec.awaitBody() : T =
* Coroutines variant of [WebClient.ResponseSpec.bodyToMono].
*
* @author Valentin Shakhov
* @since 5.3.6
*/
suspend inline fun <reified T : Any> WebClient.ResponseSpec.awaitBodyOrNull() : T? =
when (T::class) {