Merge pull request #26755 from izeye

* pr/26755:
  Add since to WebClient.ResponseSpec.awaitBodyOrNull()

Closes gh-26755
This commit is contained in:
Stephane Nicoll 2021-04-02 17:46:13 +02:00
commit 01bea34569
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) {