Jake
08/14/2020, 7:20 PMManuel Lorenzo
08/18/2020, 1:49 PMManuel Lorenzo
08/18/2020, 1:50 PMManuel Lorenzo
08/18/2020, 1:50 PMxii
08/23/2020, 11:11 PMxii
08/23/2020, 11:11 PMpdegand
08/25/2020, 4:25 PMDariusz 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 effectsAyodele
09/01/2020, 10:28 AMcorneil
09/02/2020, 6:51 AMAlexJuca
09/02/2020, 3:38 PMGopal Kalyanaraman
09/03/2020, 1:52 PMMarcel Champagne
09/04/2020, 11:16 PMMarcel Champagne
09/04/2020, 11:17 PMnathan
09/06/2020, 6:54 PM@Entity
@Table(name="comment")
class Comment (
@Id @GeneratedValue (strategy = GenerationType.AUTO) var id: Long,
var body : String,
var video_link: String,
var image_link: String,
)
sdeleuze
09/15/2020, 7:02 PMalwyn
09/17/2020, 7:14 PMnathan
09/17/2020, 8:11 PMAyodele
09/18/2020, 8:21 AMcueball
09/25/2020, 4:24 AMreactive.function.client
method awaitBody()
from a Generic class and am running into error:
Kotlin: Cannot use 'Response' as reified type parameter. Use a class instead.
---
class ReactiveWebClient<Request: Any, Response: Any> {
suspend fun post(uri: URI, request: Request, headers: (HttpHeaders) -> Unit): Response {
return <http://webClient.post|webClient.post>()
.uri(uri)
.body(BodyInserters.fromValue(request))
.headers(headers)
.retrieve()
.awaitBody() // error on this line
}
}
Signature of `awaitBody`:
public suspend inline fun <reified T : kotlin.Any> org.springframework.web.reactive.function.client.WebClient.ResponseSpec.awaitBody(): T { /* compiled code */ }
Can someone please help? I’m not so well versed with Kotlin’s type parameters.
Slack ConversationEsa
10/08/2020, 11:07 AMEsa
10/08/2020, 11:11 AMjbnizet
10/08/2020, 11:16 AMEsa
10/08/2020, 11:17 AMjbnizet
10/08/2020, 11:19 AMnathan
10/13/2020, 4:18 AMavolkmann
10/13/2020, 3:55 PMuseIR = true
and suddenly default constructors were not generated for entities anymore. Has anyone encountered this? Found: https://youtrack.jetbrains.com/issue/KT-41265sdeleuze
10/15/2020, 9:32 AMsdeleuze
10/15/2020, 9:32 AMwakingrufus
10/15/2020, 3:03 PM