hello! :wave: is there a preferred way of setting...
# spring
d
hello! 👋 is there a preferred way of setting up Spring WebClient timeouts? e.g. I could wrap it in
withTimeout
coroutine
Copy code
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.
Copy code
<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