David Glasser
08/17/2020, 9:38 PMwithContext
block and the request succeeds but the withContext never hangs. like, i have:
<http://log.info|log.info>("going to execute request $callsite")
withContext(MyContextThingy()) {
<http://log.info|log.info>("in first context")
}
<http://log.info|log.info>("back from context")
val res: HttpResponse = withContext(MyContextThingy()) {
<http://log.info|log.info>("top of context")
val response: HttpResponse = httpClient.request {
url.takeFrom(this@DruidClient.url)
method = <http://HttpMethod.Post|HttpMethod.Post>
contentType(ContentType.Application.Json)
body = req
}
<http://log.info|log.info>("after request")
response
}
<http://log.info|log.info>("after WC")
res
and it gets in and out of the first withContext fine, and logs after request
, but never after WC
. anyone seen anything odd like this?David Glasser
08/17/2020, 9:49 PMDavid Glasser
08/17/2020, 9:50 PMDavid Glasser
08/17/2020, 9:51 PMDavid Glasser
08/17/2020, 9:54 PM