Dariusz Kuc
08/25/2020, 6:08 PMwithTimeout
coroutine
withTimeout(1000) {
<http://client.post|client.post>().bodyValue(myValue).awaitExchange().awaitBody<String>()
}
or I could apply the timeout on the Mono
from the above, e.g.
<http://client.post|client.post>()
.bodyValue(myValue)
.awaitExchange()
.bodyToMono(String::class.java)
.timeout(Duration.ofMillis(1000)
.awaitSingle()
I’m wondering whether #1 above might have some unintended side effects